2016-05-19 15:03:39 +03:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
2016-07-15 14:12:17 +03:00
|
|
|
- "4"
|
2016-05-19 15:03:39 +03:00
|
|
|
|
2016-06-28 20:36:00 +03:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
|
|
|
|
|
2016-06-22 19:31:11 +03:00
|
|
|
branches:
|
2016-07-15 19:51:00 +03:00
|
|
|
except:
|
2016-06-22 19:31:11 +03:00
|
|
|
- /^greenkeeper-.+$/
|
2016-05-24 15:07:31 +03:00
|
|
|
|
2016-05-19 15:03:39 +03:00
|
|
|
cache:
|
2017-02-19 17:36:07 +03:00
|
|
|
yarn: true
|
2016-05-19 15:03:39 +03:00
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-02-19 17:19:46 +03:00
|
|
|
- broccoli-persistent-cache
|
2016-05-19 15:03:39 +03:00
|
|
|
|
|
|
|
addons:
|
|
|
|
firefox: "latest"
|
2017-09-01 15:46:25 +03:00
|
|
|
chrome: "stable"
|
2016-05-19 15:03:39 +03:00
|
|
|
|
|
|
|
install:
|
2017-02-19 17:36:07 +03:00
|
|
|
- npm i -g yarn
|
|
|
|
- yarn global add bower
|
|
|
|
- yarn
|
2016-05-19 15:03:39 +03:00
|
|
|
- bower install
|
|
|
|
|
|
|
|
before_script:
|
2017-02-19 17:36:07 +03:00
|
|
|
- yarn add --force node-sass # temporary, workaround for https://github.com/yarnpkg/yarn/issues/1981
|
2016-05-19 15:03:39 +03:00
|
|
|
- export DISPLAY=:99; sh -e /etc/init.d/xvfb start; sleep 3;
|
2017-02-19 17:19:46 +03:00
|
|
|
- export BROCCOLI_PERSISTENT_FILTER_CACHE_ROOT=/home/travis/build/TryGhost/Ghost-Admin/broccoli-persistent-cache
|
2016-05-19 15:03:39 +03:00
|
|
|
|
|
|
|
script:
|
2017-01-10 02:00:12 +03:00
|
|
|
- COVERAGE=true npm test
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- npm run coverage
|