-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (93 loc) · 2.29 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
# 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}"
- PIP_USE_FEATURE="2020-resolver"
- NUMPY="numpy"
jobs:
include:
-
env:
SCRIPT="static"
-
env:
SCRIPT="test-coverage"
TEST_ARGS="--plots"
python: 3.5
-
env:
SCRIPT="docs"
addons:
apt:
packages:
- graphviz
- pandoc
- 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
- bones-check --verbose
# 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