forked from nickdelgrosso/cellfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
126 lines (123 loc) · 3.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
after_success:
- pip install coveralls
- coveralls
stages:
- test
- name: deploy
if:
tag IS present AND repo = SainsburyWellcomeCentre/cellfinder
jobs:
include:
- stage: test
name: "Ubuntu Bionic python 3.6"
language: python
os: linux
dist: bionic
python: 3.6
script: travis_wait 40 bash travis/install_test_linux.sh
- stage: test
name: "Ubuntu Bionic python 3.7"
language: python
os: linux
dist: bionic
python: 3.7
script: travis_wait 40 bash travis/install_test_linux.sh
- stage: test
name: "Ubuntu Xenial python 3.6"
language: python
os: linux
dist: xenial
python: 3.6
script: travis_wait 40 bash travis/install_test_linux.sh
- stage: test
name: "Ubuntu Xenial python 3.7"
language: python
os: linux
dist: xenial
python: 3.7
script: travis_wait 40 bash travis/install_test_linux.sh
- stage: test
name: "Windows Python 3.6"
language: shell
env: TRAVIS_PYTHON_VERSION=3.6
os: windows
before_install:
- source travis/install_windows.sh
script: travis_wait 40 bash travis/test_windows.sh
- stage: test
name: "Windows Python 3.7"
language: shell
env: TRAVIS_PYTHON_VERSION=3.7
os: windows
before_install:
- source travis/install_windows.sh
script: travis_wait 40 bash travis/test_windows.sh
# - stage: test
# name: "macOS Python 3.7"
# os: osx
# language: shell
# env: TRAVIS_PYTHON_VERSION=3.7
# script: travis_wait 40 bash travis/install_test_osx.sh
- stage: deploy
name: "Deploy Linux (py36 & py37)"
language: python
services:
- docker
script:
- mkdir pypi_upload
- python setup.py sdist
- cp dist/* pypi_upload/
- docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 /io/travis/build_linux_wheels.sh
- cp wheelhouse/manylinux/* pypi_upload/
after_success:
- pip install twine
- ls pypi_upload/*
- twine upload pypi_upload/* --skip-existing
- stage: deploy
name: "Deploy Windows (py36)"
language: shell
env: TRAVIS_PYTHON_VERSION=3.6
os: windows
before_install:
- source travis/install_windows.sh
script:
- source travis/build_windows_wheels.sh
after_success:
- pip install twine
- twine upload dist/* --skip-existing
- stage: deploy
name: "Deploy Windows (py37)"
language: shell
env: TRAVIS_PYTHON_VERSION=3.7
os: windows
before_install:
- source travis/install_windows.sh
script:
- source travis/build_windows_wheels.sh
after_success:
- pip install twine
- twine upload dist/* --skip-existing
# - stage: deploy
# name: "Deploy macOS (py36)"
# language: shell
# env: TRAVIS_PYTHON_VERSION=3.6
# os: osx
# osx_image: xcode9.2 #macOS 10.12
# script: bash travis/install_build_wheels_osx.sh
# - stage: deploy
# name: "Deploy macOS (py37)"
# language: shell
# env: TRAVIS_PYTHON_VERSION=3.7
# os: osx
# osx_image: xcode9.2 #macOS 10.12
# script: bash travis/install_build_wheels_osx.sh
notifications:
email:
recipients:
on_success: change
on_failure: always
env:
global:
- TWINE_USERNAME=__token__
# TWINE_PASSWORD is set to a PyPI API token in Travis settings