Skip to content

Commit

Permalink
Move yarn installation into before_install scripts
Browse files Browse the repository at this point in the history
refs #9838

For some reason Travis was pulling in a different key, and so the yarn
package could not be verified. The apt addon for travis displays that it
is in beta - so for now the installation of yarn has been moved into
before_install which should be more stable.
  • Loading branch information
allouis committed Aug 30, 2018
1 parent 8ccf273 commit 647fb1d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Expand Up @@ -10,14 +10,6 @@ cache:
directories:
- node_modules

addons:
apt:
sources:
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
packages:
- yarn

env:
global:
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
Expand All @@ -37,6 +29,10 @@ branches:

before_install:
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi
- curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo -E apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee -a /etc/apt/sources.list >/dev/null
- sudo -E apt-get -yq update &>> ~/apt-get-update.log
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends $TRAVIS_APT_OPTS install yarn

install:
- yarn
Expand Down

0 comments on commit 647fb1d

Please sign in to comment.