forked from SpiNNakerManchester/sPyNNaker8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (74 loc) · 3.17 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
# Copyright (c) 2017-2019 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
language: python
python:
- 2.7
- 3.6
- 3.7
dist: xenial
cache: pip
env:
- MPLBACKEND=module://matplotlib.backends.backend_agg
addons:
apt:
packages:
- openjdk-8-jre-headless
- ant
before_install:
# Work around ludicrous Travis bug
- git clone https://github.com/SpiNNakerManchester/SupportScripts.git support
- python support/travis_blocking_stdout.py
- support/rat.sh download
# Bring pip up to date
- pip install --upgrade pip setuptools wheel
- pip install --only-binary=numpy,scipy,matplotlib numpy scipy matplotlib
# SpiNNakerManchester internal dependencies; development mode
- support/pipinstall.sh git://github.com/SpiNNakerManchester/SpiNNUtils.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/SpiNNMachine.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/SpiNNStorageHandlers.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/SpiNNMan.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/PACMAN.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/DataSpecification.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/spalloc.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git
- support/pipinstall.sh git://github.com/SpiNNakerManchester/sPyNNaker.git
- support/gitclone.sh https://github.com/SpiNNakerManchester/IntroLab.git
- support/gitclone.sh https://github.com/SpiNNakerManchester/PyNN8Examples.git
install:
- pip install -r requirements-test.txt
- pip install python-coveralls 'coverage>=4.4'
- python ./setup.py install
before_script:
- echo '[Machine]' > ~/.spynnaker.cfg
- echo "machineName = $SPINNAKER_BOARD_ADDRESS" >> ~/.spynnaker.cfg
- echo "version = ${SPINNAKER_BOARD_VERSION:-5}" >> ~/.spynnaker.cfg
- echo '[Database]' >> ~/.spynnaker.cfg
- echo '[Simulation]' >> ~/.spynnaker.cfg
- echo '[Buffers]' >> ~/.spynnaker.cfg
script:
# Tests
- py.test unittests --cov spynnaker8
# Code quality check
- flake8 spynnaker8 unittests p8_fga_tests p8_integration_tests
# Copyright check
- support/rat.sh run
# Doc check
- cd doc/source
- sphinx-build -T -E -b html -d _build/doctrees-readthedocsdirhtml -D language=en . _build/html
- sphinx-build -T -b json -d _build/doctrees-json -D language=en . _build/json
- sphinx-build -T -b singlehtml -d _build/doctrees-readthedocssinglehtmllocalmedia -D language=en . _build/localmedia
after_success:
- cd $TRAVIS_BUILD_DIR
- COVERALLS_PARALLEL=true coveralls