forked from SpiNNakerManchester/SpiNNFrontEndCommon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (61 loc) · 2.49 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
language: python
python:
- 2.7
- 3.6
dist: trusty
addons:
apt:
packages:
- libc6:i386
- vera++
- libxml2-utils
- gcc-arm-none-eabi
- libnewlib-arm-none-eabi
cache: pip
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 numpy scipy
# 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
# C dependencies
- support/gitclone.sh https://github.com/SpiNNakerManchester/spinnaker_tools.git
- support/gitclone.sh https://github.com/SpiNNakerManchester/spinn_common.git
- export SPINN_DIRS=$PWD/spinnaker_tools
install:
# These things ought to be enough
- 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
script:
# Python
- py.test unittests --cov spinn_front_end_common
- py.test fec_integration_tests --cov spinn_front_end_common --cov-append
- flake8 spinn_front_end_common
- flake8 unittests integration_tests
# XML
- find spinn_front_end_common -name '*.xml' | xargs -n 1 support/validate-xml.sh
# C # Vera before make to avoid vera seeing modified stuff
- support/run-vera.sh c_common/front_end_common_lib
- support/run-vera.sh c_common/models
- make -C c_common
# 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