-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.travis.yml
124 lines (110 loc) · 3.33 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
# Automatically generated by nengo-bones, do not edit this file directly
language: python
python: 3.8
notifications:
email:
on_success: change
on_failure: change
slack:
if: branch = master
on_pull_requests: false
on_success: change
on_failure: always
rooms:
- secure: "wZ7l/X7cVeetmwfup7vCeN74pqFGMC5eaJfy/aqRwVGCbY3aHQKoqJaBBrVefc+DsJwPPM9HIOGs7jkPY+Y1pFbklAhWCDCvmc+f3fL4/yPWK1u7r8IIHhM3O0YvYrEHfFfZn+V1nAomx1/wttFOr07LLffaNOn+sFzXgKP1Ebv5MrlCNGY0q3T2A38pwXus60GXaGalI/I/a/vjRdkEmq38eIMqLl0v94oCy67Gqb/5mlB8eT6SffLGoFCctNpC9G9jyh/eRQp+B+YwksjZz+SOQTIy/mOlk8fU1ZL4f9wPguXheKznckuvX+J0o+o5kspyrQveWW2lo1VjmnFfdifCVjTj4AIcmc60Zb2dMzzBcfcA+zeVlhWkWbB65LuuXkfxxsN97EwP5KVH+Lw7c2ycUyHV8XvKHNzVRLIUuVeOTKLHgGpkVgz/WasT5yBOEbnAyZxxAHQpMbXQr9POwaq92Kwb7du0sLcsP4agdd2L0YACb4JdwQeeD1c8h6RrXua2ejBJ41e+9ZkZcZGad9P6YVmxvI+hdddjdzzvBWq6+B/Ubft9AqQXmn4pg0fKkZLjrzsSYGRhXzINxhVBjZD8b5BQIb/Aeix3IFhLmDdSQMhjdETAgL3jSd9D5t1G5QNp4AdbitqcH+yNoXzZCXye76hrwYr6yrHi3JN9yrM="
cache: pip
dist: xenial
env:
global:
- SCRIPT="test"
- TEST_ARGS=""
- BRANCH_NAME="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
- PIP_USE_FEATURE="2020-resolver"
- TF_VERSION="tensorflow"
jobs:
include:
-
env:
SCRIPT="static"
-
env:
SCRIPT="test"
-
env:
TF_VERSION="tensorflow==2.1.0"
SCRIPT="test"
python: 3.6
-
env:
SCRIPT="docs"
addons:
apt:
packages:
- pandoc
-
env:
SCRIPT="examples"
services: ['xvfb']
- stage: deploy
if: branch =~ ^release-candidate-* OR tag =~ ^v[0-9]*
env: SCRIPT="deploy"
cache: false
deploy:
- provider: pypi
server: https://test.pypi.org/legacy/
user: __token__
password: $PYPI_TEST_TOKEN
distributions: "sdist bdist_wheel "
on:
all_branches: true
tags: false
condition: $TRAVIS_BRANCH =~ ^release-candidate-*
- provider: pypi
user: __token__
password: $PYPI_TOKEN
distributions: "sdist bdist_wheel "
on:
all_branches: true
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]*
before_install:
# export travis_terminate for use in scripts, from here:
# https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_terminate.bash
- export -f travis_terminate
_travis_terminate_agent
_travis_terminate_freebsd
_travis_terminate_linux
_travis_terminate_osx
_travis_terminate_unix
_travis_terminate_windows
# upgrade pip
- pip install pip --upgrade
# install/run nengo-bones
- pip install git+https://github.com/nengo/nengo-bones#egg=nengo-bones
- bones-generate --output-dir .ci ci-scripts
- if [[ "$TRAVIS_PYTHON_VERSION" < "3.6" ]]; then
echo "Skipping bones-check because Python $TRAVIS_PYTHON_VERSION < 3.6";
else
bones-check --verbose;
fi
# display environment info
- pip freeze
install:
- .ci/$SCRIPT.sh install
- pip freeze
before_script:
- .ci/$SCRIPT.sh before_script
script:
- .ci/$SCRIPT.sh script
before_cache:
- .ci/$SCRIPT.sh before_cache
after_success:
- .ci/$SCRIPT.sh after_success
after_failure:
- .ci/$SCRIPT.sh after_failure
before_deploy:
- .ci/$SCRIPT.sh before_deploy
after_deploy:
- .ci/$SCRIPT.sh after_deploy
after_script:
- .ci/$SCRIPT.sh after_script