travis: Write a sane sources.list
Also updates nodejs
This commit is contained in:
parent
5ec94f96fd
commit
a98a6ac0c8
@ -43,6 +43,12 @@ travis_retry() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apt_install() {
|
apt_install() {
|
||||||
|
sudo tee /etc/apt/sources.list <<EOF
|
||||||
|
deb http://us.archive.ubuntu.com/ubuntu/ trusty main
|
||||||
|
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main
|
||||||
|
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main
|
||||||
|
EOF
|
||||||
|
sudo rm -rf /etc/apt/sources.list.d
|
||||||
travis_retry sudo apt-get -y -q update
|
travis_retry sudo apt-get -y -q update
|
||||||
travis_retry sudo apt-get -y -q install --no-install-recommends "$@"
|
travis_retry sudo apt-get -y -q install --no-install-recommends "$@"
|
||||||
}
|
}
|
||||||
@ -64,8 +70,9 @@ npm_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_node() {
|
install_node() {
|
||||||
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
||||||
apt_install nodejs
|
travis_retry sudo apt-get -y -q update
|
||||||
|
travis_retry sudo apt-get -y -q install --no-install-recommends nodejs
|
||||||
}
|
}
|
||||||
|
|
||||||
check_pyqt() {
|
check_pyqt() {
|
||||||
|
Loading…
Reference in New Issue
Block a user