This repository has been archived by the owner on Jun 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
204 lines (191 loc) · 5.87 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
language: python
matrix:
include:
# basic tests withut a backend
- name: "Unittests Python 3.5 No Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="None"
- name: "Unittests Python 3.6 No Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="None"
- name: "Unittests Python 3.7 No Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="None"
# SCIKIT-LEARN BACKEND TESTS
- name: "Unittests Python 3.5 Sklearn Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Sklearn"
- name: "Unittests Python 3.6 Sklearn Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Sklearn"
- name: "Unittests Python 3.7 Sklearn Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Sklearn"
# TENSORFLOW EAGER BACKEND TESTS
- name: "Unittests Python 3.5 TF Eager Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TFEager"
- name: "Unittests Python 3.6 TF Eager Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TFEager"
- name: "Unittests Python 3.7 TF Eager Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TFEager"
# TENSORFLOW GRAPH BACKEND TESTS
- name: "Unittests Python 3.5 TF Graph Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TFGraph"
- name: "Unittests Python 3.6 TF Graph Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TFGraph"
- name: "Unittests Python 3.7 TF Graph Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TFGraph"
# PYTORCH BACKEND TESTS
- name: "Unittests Python 3.5 Torch Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Torch"
- name: "Unittests Python 3.6 Torch Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Torch"
- name: "Unittests Python 3.7 Torch Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Torch"
# TORCHSCRIPT BACKEND TESTS
- name: "Unittests Python 3.5 TorchScript Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TorchScript"
- name: "Unittests Python 3.6 TorchScript Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TorchScript"
- name: "Unittests Python 3.7 TorchScript Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="TorchScript"
# CHAINER BACKEND TESTS
- name: "Unittests Python 3.5 Chainer Backend"
python: 3.5
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Chainer"
- name: "Unittests Python 3.6 Chainer Backend"
python: 3.6
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Chainer"
- name: "Unittests Python 3.7 Chainer Backend"
python: 3.7
dist: xenial
env:
- TEST_TYPE="unittests"
- BACKEND="Chainer"
# STATIC CHECKS
- name: "Static Style Checks"
python: 3.7
dist: xenial
env:
- TEST_TYPE="style-check"
- name: "Documentation"
python: 3.7
dist: xenial
env:
- TEST_TYPE="docs"
# command to install dependencies
before_install:
- if [[ "$TEST_TYPE" == "unittests" ]]; then
bash scripts/ci/install_before_tests.sh;
elif [[ "$TEST_TYPE" == "docs" ]]; then
bash scripts/ci/install_before_docs.sh;
else
bash scripts/ci/install_before_style_check.sh;
pip install -r docs/requirements.txt;
fi
install:
- pip install --no-deps .
# command to run tests
script:
# run tests or stylechecks
- if [[ "$TEST_TYPE" == "unittests" ]]; then
bash scripts/ci/run_tests.sh;
elif [[ "$TEST_TYPE" == "docs" ]]; then
bash scripts/ci/build_docs.sh;
else
bash scripts/ci/run_style_checks.sh;
fi
after_script:
- if [[ "$TEST_TYPE" == "unittests" ]]; then
codecov;
before_deploy:
- cd $TRAVIS_BUILD_DIR
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: master
condition: $TEST_TYPE = Docs
local_dir: docs/_build/html
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
distributions: "sdist bdist_wheel"
skip_existing: true
condition: $TEST_TYPE = style-check