mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
1 changed files with 4 additions and 8 deletions
12
.travis.yml
12
.travis.yml
|
@ -10,14 +10,6 @@ cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- 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:
|
env:
|
||||||
global:
|
global:
|
||||||
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
|
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
|
||||||
|
@ -37,6 +29,10 @@ branches:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi
|
- 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:
|
install:
|
||||||
- yarn
|
- yarn
|
||||||
|
|
Loading…
Add table
Reference in a new issue