From 4778b1cb9dab1a9f5991768e600483c149bb4858 Mon Sep 17 00:00:00 2001 From: Casey Faist <caseylfaist@gmail.com> Date: Thu, 4 Oct 2018 11:34:50 -0500 Subject: [PATCH] add sudo to travis install --- .travis.yml | 4 +++- etc/ci-setup.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1dc88e92..9fc974ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,18 @@ language: ruby dist: trusty +sudo: required rvm: - 2.4.4 before_script: - gem install bundler -v 1.16.2 - bundle exec rake hatchet:setup_travis +before_install: + - sudo bash etc/ci-setup.sh jobs: include: - stage: Bash linting (shellcheck) sudo: false before_install: - - bash etc/ci-setup.sh - wget -c https://goo.gl/ZzKHFv -O - | tar -xvJ -C /tmp/ - PATH="/tmp/shellcheck-latest:$PATH" script: make check diff --git a/etc/ci-setup.sh b/etc/ci-setup.sh index bcc9f18d..a6a957ec 100755 --- a/etc/ci-setup.sh +++ b/etc/ci-setup.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash sudo apt-get -qq update -sudo apt-get install software-properties-common -y +sudo apt-get install software-properties-common curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://cli-assets.heroku.com/install-ubuntu.sh | sh -- GitLab