]> git.donarmstrong.com Git - neurodebian.git/blob - .travis.yml
Also for stats report which repo and which job number use our setup
[neurodebian.git] / .travis.yml
1 # vim ft=yaml
2 # travis-ci.org definition to provide minimalistic testing of NeuroDebian
3 # setup and tools
4 language: erlang
5 cache:
6   - apt
7 script:
8     # Test the ultimate one-liner setup for NeuroDebian repository
9     - bash tools/neurodebian-travis.sh
10     # Verify that we can "install neurodebian"
11     - sudo apt-get install -y neurodebian
12     # but by default (fix it to not disable if was enabled?)
13     # it results in neurodebian not enabled, thus disabled:
14     - test \! -f /etc/apt/sources.list.d/neurodebian.sources.list
15     # enable it via our tool
16     - NEURODEBIAN_ENABLE=yes NEURODEBIAN_UPDATE=yes sudo nd-configurerepo
17     - grep "\sprecise\s" /etc/apt/sources.list.d/neurodebian.sources.list
18     # Verify that it is still present
19     # TODO: for some reason disables it again :-/  Need to get something going already, disabled for now
20     #- NEURODEBIAN_ENABLE=yes NEURODEBIAN_VERBOSE=10 sudo apt-get install -y --reinstall neurodebian
21     - test -f /etc/apt/sources.list.d/neurodebian.sources.list
22     # Verify that -dev installs nicely
23     - sudo apt-get install -y neurodebian-dev
24 after_failure:
25     # Could happen if installation of neurodebian package kills APT repo so print policy
26     - sudo apt-cache policy
27     # But could be that just update wasn't run?
28     - sudo apt-get update
29     - sudo apt-cache policy
30     - ls -lR /etc/apt
31     - cat /etc/apt/sources.list.d/neurodebian.sources.list
32     - ls -lR /etc/neurodebian