]> git.donarmstrong.com Git - neurodebian.git/blob - .travis.yml
BF: right -- by default it disables now neurodebian even if was present before
[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     - NEURODEBIAN_ENABLE=yes sudo apt-get install -y --reinstall neurodebian
20     - test -f /etc/apt/sources.list.d/neurodebian.sources.list
21     # Verify that -dev installs nicely
22     - sudo apt-get install -y neurodebian-dev
23 after_failure:
24     # Could happen if installation of neurodebian package kills APT repo so print policy
25     - sudo apt-cache policy
26     # But could be that just update wasn't run?
27     - sudo apt-get update
28     - sudo apt-cache policy
29     - ls -lR /etc/apt
30     - cat /etc/apt/sources.list.d/neurodebian.sources.list
31     - ls -lR /etc/neurodebian