2016-02-05 01:09:01 +03:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2017-08-29 21:42:36 +03:00
|
|
|
# when changing this, be sure to edit .nvrmc and package.json too
|
|
|
|
- 7
|
2016-02-05 01:09:01 +03:00
|
|
|
|
2016-04-26 21:57:39 +03:00
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
|
2016-02-20 16:20:57 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
|
2016-02-05 01:09:01 +03:00
|
|
|
before_install:
|
2016-03-01 21:47:39 +03:00
|
|
|
# see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
|
2016-02-05 01:09:01 +03:00
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 -extension RANDR"
|
2016-10-28 01:51:09 +03:00
|
|
|
- export PATH="$PATH:$HOME/.rvm/bin"
|
2016-03-01 21:47:39 +03:00
|
|
|
- sleep 3
|
2016-02-05 01:09:01 +03:00
|
|
|
|
2016-02-20 16:20:57 +03:00
|
|
|
install:
|
|
|
|
- npm config set spin false
|
|
|
|
- npm install
|
|
|
|
|
2016-02-05 01:09:01 +03:00
|
|
|
before_script:
|
2017-03-13 23:01:55 +03:00
|
|
|
- bash bin/download-firefox-travis.sh release-linux64-add-on-devel
|
|
|
|
- export FIREFOX_BIN=./firefox/firefox
|
2016-02-05 01:09:01 +03:00
|
|
|
|
|
|
|
script:
|
2017-08-10 23:49:42 +03:00
|
|
|
- npm test
|
2016-03-01 21:46:53 +03:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|