3 # A universal helper to enable NeuroDebian repository for a travis
6 # Its purpose to remove all repetative actions from various .travis.yml spread
7 # across projects and gain control in the future to point to an alternative,
8 # more appropriate for travis deployments, mirror.
14 sudo apt-get update -qq
16 # To troubleshoot failing connections to neurodebian
17 sudo apt-get install net-tools traceroute coreutils
18 sudo traceroute -T neuro.debian.net
19 echo "Request non-existing uniq file to ease tracking this connection (for troubleshooting)"
20 echo "Date: `date` Seed: $rseed"
22 wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh-$RANDOM || :
24 # Figure out what Ubuntu release travis environment is based on
25 sudo apt-get install lsb-release
27 source /etc/lsb-release
29 # Fetch the apt sources for the currently preferred mirror
30 wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
31 wget -O- http://neuro.debian.net/lists/${DISTRIB_CODENAME}.de-md.full | sudo tee -a /etc/apt/sources.list.d/neurodebian.sources.list
32 sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9
33 sudo apt-get update -qq
35 # And provide a summary over which repositories are currently available
36 sudo apt-cache policy # What is actually available?