Skip to content

Commit

Permalink
Travis: ignore errors caused by 'apt-get update'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Sep 22, 2019
1 parent a164d8f commit 040b81d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/travis_before_script.sh
Expand Up @@ -89,7 +89,10 @@ step "Web server setup"

if [ $TRAVIS_PHP_VERSION = '5.3' ]; then
# install Apache as PHP 5.3 does not come with an embedded web server
sudo apt-get update -qq
# apt-get fails to get MongoDB packages on Travis Precise builds, but this
# should not affect us so we display a message and continue
sudo apt-get update -qq ||
echo "ERROR(s) occurred while running apt-get update"
sudo apt-get install -qq apache2 libapache2-mod-php5 php5-mysql php5-pgsql

cat <<-EOF | sudo tee /etc/apache2/sites-available/default >/dev/null
Expand Down

0 comments on commit 040b81d

Please sign in to comment.