Skip to content

Commit

Permalink
Remove the need for using sudo on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Dec 27, 2017
1 parent ea22c76 commit e70d8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ language: php

dist: trusty

sudo: false

env:
global:
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
Expand All @@ -10,31 +12,27 @@ env:
matrix:
include:
-
sudo: required
php: 7.1
env:
- SYLIUS_SUITE="application"
- TRAVIS_NODE_VERSION="6.11"
services:
- memcached
-
sudo: false
php: 7.1
env: SYLIUS_SUITE="docs packages"
addons:
apt:
packages:
- parallel
-
sudo: required
php: 7.2
env:
- SYLIUS_SUITE="application"
- TRAVIS_NODE_VERSION="6.11"
services:
- memcached
-
sudo: false
php: 7.2
env: SYLIUS_SUITE="packages"
addons:
Expand Down
6 changes: 0 additions & 6 deletions etc/travis/suites/application/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e70d8fa

Please sign in to comment.