-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
131 lines (127 loc) · 8 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
127
128
129
130
131
language: python
matrix:
include:
- python: 2.7
- python: 3.5
- python: 3.6
- python: 3.7
after_success:
- python3 setup.py sdist
- pip3 install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python3 setup.py sdist && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python3 setup.py sdist && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- python: 3.8-dev
- name: "Python 2.7.14 on macOS 10.13"
os: osx
osx_image: xcode9.3 # Python 2.7.14_2 running on macOS 10.13
language: shell # 'language: python' errors on Travis CI macOS
before_install:
- python --version
- pip install -U setuptools --user
- pip install -U wheel --user
- pip install -U numpy --user
after_success:
- python setup.py bdist_wheel
- pip install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- name: "Python 3.6.5 on macOS 10.13"
os: osx
osx_image: xcode9.4 # Python 3.6.5 running on macOS 10.13
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -U setuptools
- pip3 install -U wheel
- pip3 install -U numpy
after_success:
- python3 setup.py bdist_wheel
- pip3 install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python3 setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python3 setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- name: "Python 3.7.3 on macOS 10.13"
os: osx
osx_image: xcode10.2
language: shell
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -U setuptools
- pip3 install -U wheel
- pip3 install -U numpy
after_success:
- python3 setup.py bdist_wheel
- pip3 install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python3 setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python3 setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- name: "Python 3.5.4 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' errors Travis CI Windows
before_install:
- choco install python --version 3.5.4
- python --version
- python -m pip install --upgrade pip
- pip3 install -U setuptools
- pip3 install -U wheel
- pip3 install -U numpy
env: PATH=/c/Python35:/c/Python35/Scripts:$PATH
after_success:
- python setup.py bdist_wheel
- pip install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- name: "Python 3.6.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' errors Travis CI Windows
before_install:
- choco install python --version 3.6.8
- python --version
- python -m pip install --upgrade pip
- pip3 install -U setuptools
- pip3 install -U wheel
- pip3 install -U numpy
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
after_success:
- python setup.py bdist_wheel
- pip install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- name: "Python 3.7.4 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' errors Travis CI Windows
before_install:
- choco install python --version 3.7.4
- python --version
- python -m pip install --upgrade pip
- pip3 install -U setuptools
- pip3 install -U wheel
- pip3 install -U numpy
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
after_success:
- python setup.py bdist_wheel
- pip install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
- name: "Python 2.7 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' errors Travis CI Windows
before_install:
- choco install dotnet3.5 # does not install successfully
- choco install vcpython27
- choco install python2
- python --version
- python -m pip install --upgrade pip
- pip install -U setuptools
- pip install -U wheel
- pip install -U numpy
env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
after_success:
- python setup.py bdist_wheel
- pip install -U twine
- test "${TRAVIS_TAG}" == "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${TESTPYPI_USER} -p ${TESTPYPI_PASS} --repository https://test.pypi.org/legacy/ --repository-url https://test.pypi.org/legacy/ dist/*
- test "${TRAVIS_TAG}" != "" && test "${TRAVIS_PULL_REQUEST}" == "false" && python setup.py bdist_wheel && twine upload -u ${PYPI_USER} -p ${PYPI_PASS} --repository https://upload.pypi.org/legacy/ --repository-url https://upload.pypi.org/legacy/ dist/*
allow_failures:
- name: "Python 2.7 on Windows"
script:
- python3 setup.py test || python setup.py test