2019-03-12 14:45:51 +03:00
|
|
|
dist: xenial
|
2016-05-19 15:03:39 +03:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2019-03-12 00:53:36 +03:00
|
|
|
- '10'
|
2019-03-12 14:45:51 +03:00
|
|
|
cache: yarn
|
2016-06-28 20:36:00 +03:00
|
|
|
env:
|
2019-03-11 18:14:15 +03:00
|
|
|
global:
|
2019-03-12 00:53:36 +03:00
|
|
|
- MOZ_HEADLESS=1
|
|
|
|
- JOBS=1
|
2019-05-01 17:34:37 +03:00
|
|
|
# Don't run builds for renovate PRs
|
|
|
|
if: NOT head_branch =~ ^renovate
|
2016-05-19 15:03:39 +03:00
|
|
|
addons:
|
2019-03-12 00:53:36 +03:00
|
|
|
firefox: latest
|
|
|
|
chrome: stable
|
2016-05-19 15:03:39 +03:00
|
|
|
install:
|
2019-03-12 00:53:36 +03:00
|
|
|
- yarn
|
2016-05-19 15:03:39 +03:00
|
|
|
script:
|
2019-05-06 14:02:23 +03:00
|
|
|
- yarn run lint:js && yarn run test
|
2019-09-26 10:46:58 +03:00
|
|
|
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
|