Ghost/ghost/admin/.travis.yml

23 lines
565 B
YAML
Raw Normal View History

dist: xenial
language: node_js
node_js:
- '12'
cache: yarn
env:
global:
2019-03-12 00:53:36 +03:00
- MOZ_HEADLESS=1
- JOBS=1
# Don't run builds for renovate PRs
if: NOT head_branch =~ ^renovate
addons:
2019-03-12 00:53:36 +03:00
firefox: latest
chrome: stable
install:
2019-03-12 00:53:36 +03:00
- 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