Skip to content

Commit

Permalink
Merge pull request #261 from akgrant43/travis_update
Browse files Browse the repository at this point in the history
Run "apt-get update" on debian platforms to ensure the package cache is up to date, and avoid errors similar to:

E: Failed to fetch http://package.deb 404 Not Found [IP: a.b.c.d]

This issue was documented on the Travis CI status page (https://www.traviscistatus.com/incidents/fvch7h32ncf1) on May 9:

"We have changed the build script to not default to running apt-get update for the time being, unless we're able to auto-detect that your build uses apt-get install. If your build requires it in other ways, please do opt in via .travis.yml. The build log gives instructions on how to opt in."
  • Loading branch information
akgrant43 committed May 16, 2018
2 parents 858bed2 + 1c1fcee commit d0c7f21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ language: c

sudo: required

addons:
apt:
update: true

cache:
directories:
- armchroot
Expand Down
3 changes: 3 additions & 0 deletions .travis_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set -e

if [[ "${ARCH}" = "linux64x64" ]]; then
sudo apt-get update -y
sudo apt-get install -yq --no-install-suggests --no-install-recommends --force-yes \
debhelper \
devscripts \
Expand All @@ -16,6 +17,7 @@ if [[ "${ARCH}" = "linux64x64" ]]; then
gcc-multilib \
uuid-dev
elif [[ "${ARCH}" = "linux32x86" ]]; then
sudo apt-get update -y
sudo apt-get remove -q -y gvfs-daemons
sudo apt-get install -yq --no-install-suggests --no-install-recommends --force-yes \
devscripts \
Expand Down Expand Up @@ -59,6 +61,7 @@ sudo apt-add-repository multiverse
sudo apt-add-repository universe
sudo apt-get update -myq || true

sudo apt-get update -y
sudo apt-get install -yq --no-install-suggests --no-install-recommends --force-yes \
gcc-arm-linux-gnueabi \
gcc-arm-linux-gnueabihf \
Expand Down

0 comments on commit d0c7f21

Please sign in to comment.