mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
Move yarn installation into before_install scripts
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.
This commit is contained in:
parent
8ccf27340b
commit
647fb1db62
12
.travis.yml
12
.travis.yml
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user