forked from abr/abr_control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
99 lines (85 loc) · 2.19 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
# Automatically generated by nengo-bones, do not edit this file directly
language: python
python: 3.6
notifications:
email:
on_success: change
on_failure: change
cache: pip
dist: xenial
env:
global:
- SCRIPT="test"
- TEST_ARGS=""
- BRANCH_NAME="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
jobs:
include:
-
env:
SCRIPT="static"
-
env:
SCRIPT="test-coverage"
TEST_ARGS="--plots"
- 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: tbekolay
password: $PYPI_TOKEN
distributions: "sdistbdist_wheel"
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^release-candidate-*
condition: $TRAVIS_TAG = ""
- provider: pypi
user: tbekolay
password: $PYPI_TOKEN
distributions: "sdistbdist_wheel"
on:
all_branches: 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 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;
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