2017-06-21 00:04:24 +00:00
|
|
|
language: node_js
|
|
|
|
dist: trusty
|
2017-06-21 03:48:35 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
# This is required to run new chrome on old trusty
|
|
|
|
- libnss3
|
2018-04-19 20:27:37 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-06-21 00:04:24 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-11-03 07:02:41 +00:00
|
|
|
# allow headful tests
|
|
|
|
before_install:
|
2018-11-13 07:26:16 +00:00
|
|
|
- "sysctl kernel.unprivileged_userns_clone=1"
|
2017-11-03 07:02:41 +00:00
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
2020-02-20 12:57:15 +00:00
|
|
|
- 'if [ "$FIREFOX" = "true" ]; then pyenv shell 3.6; pip3 install --user mozdownload; fi'
|
|
|
|
- 'if [ "$FIREFOX" = "true" ]; then rm -rf $FIREFOX_HOME; mozdownload -t daily -d $FIREFOX_HOME/latest.tar.bz --log-level DEBUG; fi'
|
|
|
|
- 'if [ "$FIREFOX" = "true" ]; then cd $FIREFOX_HOME; tar -xvf latest.tar.bz; cd -; ls $FIREFOX_HOME/firefox/firefox; fi'
|
2017-06-21 00:04:24 +00:00
|
|
|
script:
|
2020-03-10 20:55:32 +00:00
|
|
|
- 'if [ "$NODE10" = "true" ]; then npm run lint; fi'
|
|
|
|
- 'if [ "$NODE10" = "true" ]; then npm run coverage; fi'
|
2020-02-20 12:57:15 +00:00
|
|
|
- 'if [ "$FIREFOX" = "true" ]; then BINARY=$FIREFOX_HOME/firefox/firefox npm run funit; fi'
|
2020-03-10 20:55:32 +00:00
|
|
|
- 'if [ "$NODE10" = "true" ]; then npm run test-doclint; fi'
|
|
|
|
- 'if [ "$NODE10" = "true" ]; then npm run test-types; fi'
|
|
|
|
- 'if [ "$NODE10" = "true" ]; then npm run bundle; fi'
|
|
|
|
- 'if [ "$NODE10" = "true" ]; then npm run unit-bundle; fi'
|
2017-08-24 19:20:05 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-03-10 20:55:32 +00:00
|
|
|
- node_js: "10.18.1"
|
2019-08-09 22:46:00 +00:00
|
|
|
env:
|
2020-03-10 20:55:32 +00:00
|
|
|
- NODE10=true
|
|
|
|
- FLAKINESS_DASHBOARD_NAME="Travis Chromium (node10 + linux)"
|
2019-08-09 23:15:00 +00:00
|
|
|
- FLAKINESS_DASHBOARD_BUILD_URL="${TRAVIS_JOB_WEB_URL}"
|
2020-03-10 20:55:32 +00:00
|
|
|
- node_js: "10.18.1"
|
2019-08-10 01:37:43 +00:00
|
|
|
env:
|
|
|
|
- FIREFOX=true
|
2020-03-10 20:55:32 +00:00
|
|
|
- FLAKINESS_DASHBOARD_NAME="Travis Firefox Nightly (node10 + linux)"
|
2019-08-10 01:37:43 +00:00
|
|
|
- FLAKINESS_DASHBOARD_BUILD_URL="${TRAVIS_JOB_WEB_URL}"
|
2020-02-20 12:57:15 +00:00
|
|
|
- FIREFOX_HOME=$TRAVIS_HOME/firefox-latest
|