forked from neurodebian/neurodebian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 1.48 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
# vim ft=yaml
# travis-ci.org definition to provide minimalistic testing of NeuroDebian
# setup and tools
language: erlang
cache:
- apt
services:
- docker
script:
# Test the ultimate one-liner setup for NeuroDebian repository
- bash tools/neurodebian-travis.sh
# Verify that we can "install neurodebian"
- sudo apt-get install -y neurodebian
# but by default (fix it to not disable if was enabled?)
# it results in neurodebian not enabled, thus disabled:
- test \! -f /etc/apt/sources.list.d/neurodebian.sources.list
# enable it via our tool
- NEURODEBIAN_ENABLE=1 NEURODEBIAN_UPDATE=1 sudo nd-configurerepo
- grep "\strusty\s" /etc/apt/sources.list.d/neurodebian.sources.list
# Verify that it is still present
# TODO: for some reason disables it again :-/ Need to get something going already, disabled for now
#- NEURODEBIAN_ENABLE=1 NEURODEBIAN_VERBOSE=10 sudo apt-get install -y --reinstall neurodebian
- test -f /etc/apt/sources.list.d/neurodebian.sources.list
# Verify that -dev installs nicely
- sudo apt-get install -y neurodebian-dev
# Test nd_freeze
- bash tools/tests/test_nd_freeze
after_failure:
# Could happen if installation of neurodebian package kills APT repo so print policy
- sudo apt-cache policy
# But could be that just update wasn't run?
- sudo apt-get update
- sudo apt-cache policy
- ls -lR /etc/apt
- cat /etc/apt/sources.list.d/neurodebian.sources.list
- ls -lR /etc/neurodebian