From e70d8fa19e51abd0881daede04082e2c46e048ff Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Wed, 27 Dec 2017 13:33:06 +0100 Subject: [PATCH] Remove the need for using sudo on Travis --- .travis.yml | 6 ++---- etc/travis/suites/application/before_install.sh | 6 ------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index b6a7492e3ed..c631d4f0821 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: php dist: trusty +sudo: false + env: global: - SYLIUS_CACHE_DIR=$HOME/.sylius-cache @@ -10,7 +12,6 @@ env: matrix: include: - - sudo: required php: 7.1 env: - SYLIUS_SUITE="application" @@ -18,7 +19,6 @@ matrix: services: - memcached - - sudo: false php: 7.1 env: SYLIUS_SUITE="docs packages" addons: @@ -26,7 +26,6 @@ matrix: packages: - parallel - - sudo: required php: 7.2 env: - SYLIUS_SUITE="application" @@ -34,7 +33,6 @@ matrix: services: - memcached - - sudo: false php: 7.2 env: SYLIUS_SUITE="packages" addons: diff --git a/etc/travis/suites/application/before_install.sh b/etc/travis/suites/application/before_install.sh index 71f1715ff01..38051e710ef 100755 --- a/etc/travis/suites/application/before_install.sh +++ b/etc/travis/suites/application/before_install.sh @@ -10,9 +10,3 @@ print_header "Installing Yarn" "Sylius" # Install Node Version Manager to install newer node version run_command "rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout \`git describe --abbrev=0 --tags\`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION" || exit $? - -# Install Yarn globally -run_command "sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg" -run_command "echo \"deb http://dl.yarnpkg.com/debian/ stable main\" | sudo tee /etc/apt/sources.list.d/yarn.list" -run_command "sudo apt-get update -qq" -run_command "sudo apt-get install -y -qq yarn=1.2.1-1"