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
Daniel Lockyer 1da0640bdf Added Node 10 testing to CI
no issue

- we want to test on all supported Node versions
2020-01-22 12:47:50 +07:00

24 lines
572 B
YAML

dist: xenial
language: node_js
node_js:
- '10'
- '12'
cache: yarn
env:
global:
- MOZ_HEADLESS=1
- JOBS=1
# Don't run builds for renovate PRs
if: NOT head_branch =~ ^renovate
addons:
firefox: latest
chrome: stable
install:
- yarn
script:
- yarn run lint:js && yarn run test
after_failure: |
if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then
curl -X POST --data-urlencode "payload={\"attachments\": [{\"color\": \"danger\", \"fallback\": \"Build Failure: $TRAVIS_JOB_WEB_URL\", \"title\": \"Build Failure\", \"text\": \"$TRAVIS_JOB_WEB_URL\"}]}" $SLACK_URL
fi