-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
168 lines (162 loc) · 7.35 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
env:
global:
- REPO_DIR=onnx
- BUILD_COMMIT=994c6181247d7b419b28889fc57d5817e2089419
- PLAT=x86_64
- PB_VERSION=2.6.1
- REPO=https://upload.pypi.org/legacy/
- TEST_REPO=https://test.pypi.org/legacy/
- secure: RHpB38w8azGMD1v6NkxuJO9x/eqOEON+IWcqNVjOweZYwNkupZvjissludvXgjli5ZJ9mHG3JQD0alZa2fQ8UX3FOi1hh7OQf+vrZ6ydRm2XOr53IGAuG2G9iTdBngDma9sK9QjvzHFSX922YO9VW12x66/Ht0sARUmJ5W1y/2srUFfwcS1MTbMHQc3rb33OnrOvmv/Xx8S0LHnKYTsdLNRzsbNKUyWyVi379BeuiQF1ROB0mh9zcpK93TjkI9PU5lWZKLjoZWSj++ZIOQoTohDdjecYPiicj6b2HykUqNWl8AFA5UgfiYmmMgbnHNMEHn/uCJSGqGtA4sH51uoYw70rR/vZIQF6dy1Wx1EPQv3Qwb0O/ME2VA1p6HtXtfdkahOqXmvFbnKRVEkNB5+7qXUaId/RQpVbWrE/StZCJhxMgynSbs9Tr7Iu/Pd57ZTnZuPZPv5lE83bVWwo/WFjRZwwE28NSBcME6Y7FPjdyTARWfeFvhhS0OimTD5jk0jIVW5yWrqIOt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QodF+9gEfM5hxCZFV2FvOqEyb1oFs1h7RlTDtgidht+sMfu+oh2tOfPg8Ci6MRo=
- secure: RLmYfdQgXzHOaKVm9xq6Ao5MHXeHw9Y8YXPb0dEqPBtmMntIqcVYMKrO1h/bTAttP1LKlRMJOXS2+eiZgDzClfdvryzNgaFEXNJIY0mZ1AiraQG3UeMmJp3B+5fVLCGHCkLfqEtI5Tka46jquiUsqCajrMnHuRRQL1IPFSuPMa4lvPVSIEmBwWQIIIzfJvJrIDt5d2hVJCQ3G2Z0ylsJFQjJwbhWGT71ULpre7JWsy8XHqiFdZF3P+ELHxjdpz6XxDJkSHMZ5VIkg0XjBxAupmi8tr3vsAgRb8hfBsU/KqPRL2DLXQ0eI364+0ed4SC32aBBL1lETtiz/RLMQDdD8E62DMXLzpmqQT/dM5X3w6lWLOlCv8BAoow1iLkt8TcP2k9DXl7FCEvYagWIt2c04B3lqahdC+LM0Rx3Yc6crufWm7PzaHObFwhOzdHw3/z6J0NgvqWhVckZU4Use1bvCE4JSV8b57x/nclZRXVfu8UMAIvJAUhUs3TYOKh4V4Bgf6tD/k0K/x8Nh2qTpyEWPGq5txzJX+QEZu0SWYIULv6G3Ils9WUXplYmg77ybU/kDDoGNmjbgrdQrOPs4cdAd8iXsW1PDHBYXrbVs3mCCEk2R2o51gtVXlgWjeNYn0bXe+Ac4nHSi196ctJ4ZPLvcM5f0ccUP1wgo/h8Uo3iQWU=
addons:
artifacts:
s3_region: "us-west-1" # defaults to "us-east-1"
debug: true
paths:
- $(git ls-files -o | grep .whl |tr "\n" ":")
target_paths:
- /test
language: python
# Default Python version is usually 2.7
python: 3.5
sudo: required
dist: trusty
services: docker
# Force xcode 6.4 image to work round
# https://github.com/python-pillow/pillow-wheels/issues/45
# So we have the line below for OSX builds
# osx_image: xcode9.3beta
matrix:
include:
- name: "OSX Python 3.5"
os: osx
language: generic
sudo: required
osx_image: xcode9.3beta
env:
- MB_PYTHON_VERSION=3.5
- ONNX_ML=1
- MACOSX_DEPLOYMENT_TARGET=10.9
- name: "OSX Python 3.6"
os: osx
language: generic
sudo: required
osx_image: xcode9.3beta
env:
- MB_PYTHON_VERSION=3.6
- ONNX_ML=1
- MACOSX_DEPLOYMENT_TARGET=10.9
- name: "OSX Python 3.7"
os: osx
language: generic
sudo: required
osx_image: xcode9.3beta
env:
- MB_PYTHON_VERSION=3.7
- ONNX_ML=1
- MACOSX_DEPLOYMENT_TARGET=10.9
- name: "OSX Python 3.8"
os: osx
language: generic
sudo: required
osx_image: xcode9.3beta
env:
- MB_PYTHON_VERSION=3.8
- ONNX_ML=1
- MACOSX_DEPLOYMENT_TARGET=10.9
- name: "Linux x64 Python 3.5"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.5
- MB_ML_VER=2010
- ONNX_ML=1
- name: "Linux x64 Python 3.6"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.6
- MB_ML_VER=2010
- ONNX_ML=1
- name: "Linux x64 Python 3.7"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.7
- MB_ML_VER=2010
- ONNX_ML=1
- name: "Linux x64 Python 3.8"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.8
- MB_ML_VER=2010
- ONNX_ML=1
- name: "Linux x86 Python 3.5"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.5
- MB_ML_VER=2010
- ONNX_ML=1
- PLAT=i686
- name: "Linux x86 Python 3.6"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.6
- MB_ML_VER=2010
- ONNX_ML=1
- PLAT=i686
- name: "Linux x86 Python 3.7"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.7
- MB_ML_VER=2010
- ONNX_ML=1
- PLAT=i686
- name: "Linux x86 Python 3.8"
os: linux
sudo: required
env:
- MB_PYTHON_VERSION=3.8
- MB_ML_VER=2010
- ONNX_ML=1
- PLAT=i686
before_install:
- source multibuild/common_utils.sh;
- source multibuild/travis_steps.sh;
- before_install;
install:
- clean_code $REPO_DIR $BUILD_COMMIT;
- build_wheel $REPO_DIR $PLAT;
script:
- install_run $PLAT
after_success:
- >
if [[ $MB_PYTHON_VERSION == "3.5" && $TRAVIS_OS_NAME == "osx" ]]; then
echo "Python 3.5 on Mac will fail while uploading PyPi package. Save the wheel to AWS anyway.";
elif [ -n "$TRAVIS_TAG" ]; then
pip install twine;
pip install pyOpenSSL ndg-httpsclient pyasn1 || true;
python -m twine upload --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl --repository-url $REPO -u $PYPI_USERNAME_TRAVIS -p $PYPI_PASSWORD_TRAVIS ;
echo "Deployed to PyPI.";
elif [ "$TRAVIS_BRANCH" == "pypi-test" ]; then
pip install twine;
pip install pyOpenSSL ndg-httpsclient pyasn1 || true;
ls ${TRAVIS_BUILD_DIR}/wheelhouse/;
python -m twine upload --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl --repository-url $TEST_REPO -u $PYPI_USERNAME -p $PYPI_PASSWORD ;
echo "Deployed to test PyPI.";
else
echo "Not deploying as not a commit on test branch.";
fi
cache:
- timeout: 300
- directories:
- "$BUILD_CCACHE_DIR"
- "$HOME/.ccache"
- "$HOME/.cache/pb"