forked from SpiNNakerManchester/sPyNNaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (73 loc) · 2.96 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
language: python
python:
- 2.7
- 3.6
dist: xenial
matrix:
include:
- python: 3.7
sudo: true
cache: pip
addons:
apt:
packages:
- libc6:i386
- vera++
- libxml2-utils
- gcc-arm-none-eabi
- libnewlib-arm-none-eabi
before_install:
# Work around ludicrous Travis bug
- git clone https://github.com/SpiNNakerManchester/SupportScripts.git support
- python support/travis_blocking_stdout.py
# 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
# C dependencies
- support/gitclone.sh https://github.com/SpiNNakerManchester/spinnaker_tools.git
- support/gitclone.sh https://github.com/SpiNNakerManchester/spinn_common.git
- support/gitclone.sh https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon.git
- export SPINN_DIRS=$PWD/spinnaker_tools
- export NEURAL_MODELLING_DIRS=$PWD/neural_modelling
install:
- pip install -r requirements-test.txt
- pip install python-coveralls 'coverage>=4.4'
- python ./setup.py install
before_script:
# Initialise builds against spinnaker_tools
- make -C $SPINN_DIRS
- make -C spinn_common install
- make -C SpiNNFrontEndCommon/c_common install
# Make a test config
- 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:
# Python
- py.test unittests --cov spynnaker
- flake8 examples spynnaker pyNN-spiNNaker-src
- flake8 unittests
# XML
- find spynnaker -name '*.xml' | xargs -n 1 support/validate-xml.sh
# C
- CFLAGS=-fdiagnostics-color make -C neural_modelling
- support/run-vera.sh neural_modelling/src
# Docs
- support/travis-sphinx.sh html -T -E -b html -d _build/doctrees-readthedocsdirhtml -D language=en . _build/html
- support/travis-sphinx.sh json -T -b json -d _build/doctrees-json -D language=en . _build/json
- support/travis-sphinx.sh singlehtml -T -b singlehtml -d _build/doctrees-readthedocssinglehtmllocalmedia -D language=en . _build/localmedia
after_success:
- cd $TRAVIS_BUILD_DIR
- coveralls