1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/.travis.yml
Kevin Ansfield 15f92b2c35 Re-enable yarn in Travis
no issue
- we had [previously reverted](e939e8be6c) the use of `yarn` on Travis as we suspected it as being a culprit in failing editor builds, that wasn't the real cause so this switches us back to using `yarn`
2017-02-19 10:59:51 -06:00

45 lines
842 B
YAML

sudo: required
dist: trusty
language: node_js
node_js:
- "4"
env:
global:
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
branches:
except:
- /^greenkeeper-.+$/
cache:
yarn: true
directories:
- node_modules
- broccoli-persistent-cache
addons:
firefox: "latest"
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
install:
- npm i -g yarn
- yarn global add bower
- yarn
- bower install
before_script:
- yarn add --force node-sass # temporary, workaround for https://github.com/yarnpkg/yarn/issues/1981
- export DISPLAY=:99; sh -e /etc/init.d/xvfb start; sleep 3;
- export BROCCOLI_PERSISTENT_FILTER_CACHE_ROOT=/home/travis/build/TryGhost/Ghost-Admin/broccoli-persistent-cache
script:
- COVERAGE=true npm test
after_success:
- npm run coverage