Skip to content

Commit

Permalink
Speed up Debian Wheezy Travic-CI
Browse files Browse the repository at this point in the history
Snapshots package repository is astonishingly slow, so since the Archive
repository for Wheezy seems to have gotten fixed (there was some
dependency conflict, perhaps specific to wheezy-backports) lets use it
instead, it's a lot faster.
  • Loading branch information
nurupo committed Apr 13, 2019
1 parent 6c2dc2e commit 177df55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ if [ "$TARGET" = "Linux" ]; then
if [ "$DEBIAN" = "wheezy-backports" ]; then
# Debian Wheezy package repository was moved to Archive but the Docker image still links to the main repository
RUN bash -c 'echo "
deb http://snapshot.debian.org/archive/debian/20190321T212815Z wheezy main
deb http://snapshot.debian.org/archive/debian-security/20190321T212815Z wheezy/updates main
deb http://snapshot.debian.org/archive/debian/20190321T212815Z wheezy-updates main
deb http://archive.debian.org/debian wheezy main
deb http://archive.debian.org/debian-security wheezy/updates main
" > /etc/apt/sources.list'
RUN bash -c 'echo "deb http://snapshot.debian.org/archive/debian/20190321T212815Z wheezy-backports main" > /etc/apt/sources.list.d/backports.list'
RUN bash -c 'echo "deb http://archive.debian.org/debian wheezy-backports main" > /etc/apt/sources.list.d/backports.list'
RUN bash -c 'echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf.d/10-nocheckvalid'
fi
RUN apt-get update
Expand Down

0 comments on commit 177df55

Please sign in to comment.