mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
bffde8f29f
no issue - align Travis config more closely to default ember-cli setup - run Chrome in headless mode in CI (Travis + `ember test`, `ember test --server` is "dev" mode) - install yarn via install script rather than npm - remove broccoli cache from Travis cache (not sure it ever worked?) - remove forced node-sass install (no longer needed) - add `testem` as a top-level dep to force the latest version (ember-data is pinned at 1.15)
44 lines
683 B
YAML
44 lines
683 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:
|
|
- $HOME/.npm
|
|
- $HOME/.cache # includes bower's cache
|
|
|
|
addons:
|
|
firefox: "latest"
|
|
chrome: "stable"
|
|
|
|
before_install:
|
|
# install latest yarn
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
- export PATH=$HOME/.yarn/bin:$PATH
|
|
|
|
install:
|
|
- yarn global add bower
|
|
- yarn
|
|
- bower install
|
|
|
|
before_script:
|
|
- export DISPLAY=:99; sh -e /etc/init.d/xvfb start; sleep 3;
|
|
|
|
script:
|
|
- COVERAGE=true npm test
|
|
|
|
after_success:
|
|
- npm run coverage
|