Skip to content

Commit

Permalink
Merge 675bd2c into 9427d52
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Burton committed Feb 17, 2016
2 parents 9427d52 + 675bd2c commit 1ed9293
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/travis/build/appliances.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'travis/build/appliances/disable_sudo'
require 'travis/build/appliances/disable_ssh_roaming'
require 'travis/build/appliances/env'
require 'travis/build/appliances/update_glibc'
require 'travis/build/appliances/fix_etc_hosts'
require 'travis/build/appliances/fix_etc_mavenrc'
require 'travis/build/appliances/fix_ps4'
Expand Down
20 changes: 20 additions & 0 deletions lib/travis/build/appliances/update_glibc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require 'travis/build/appliances/base'

module Travis
module Build
module Appliances
class UpdateGlibc < Base
def apply
sh.export 'DEBIAN_FRONTEND', 'noninteractive', echo: true
sh.cmd <<--EOF
if [ ! $(uname|grep Darwin) ]; then
sudo -E apt-get -yq update &>> ~/apt-get-update.log"
sudo -E apt-get -yq --no-install-suggests --no-install-recommends "--force-yes install libc6"
fi
EOF
end
end
end
end
end

1 change: 1 addition & 0 deletions lib/travis/build/script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def header

def configure
apply :show_system_info
apply :update_glibc
apply :fix_resolv_conf
apply :fix_etc_hosts
apply :fix_etc_mavenrc
Expand Down

0 comments on commit 1ed9293

Please sign in to comment.