2017-07-05 15:39:02 +02:00
|
|
|
# we need trusty for the chrome addon
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
# we don't need sudo, so can run in a container, which makes startup much
|
|
|
|
# quicker.
|
2018-01-16 10:38:16 +01:00
|
|
|
#
|
2018-01-16 11:09:11 +01:00
|
|
|
# unfortunately we do temporarily require sudo as a workaround for
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/8836
|
2018-01-16 10:38:16 +01:00
|
|
|
sudo: required
|
2017-07-05 15:39:02 +02:00
|
|
|
|
2016-08-23 16:05:50 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- node # Latest stable version of nodejs.
|
2017-07-05 15:39:02 +02:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2017-01-12 18:09:49 +01:00
|
|
|
install:
|
|
|
|
- npm install
|
2019-01-08 12:21:19 +01:00
|
|
|
- ./scripts/travis/install-deps.sh
|
|
|
|
|
2019-01-08 12:48:11 +01:00
|
|
|
cache: npm
|
|
|
|
|
2019-01-08 12:21:19 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: Linting Checks
|
|
|
|
script:
|
|
|
|
# run the linter, but exclude any files known to have errors or warnings.
|
|
|
|
- npm run lintwithexclusions
|
|
|
|
- name: End-to-End Tests
|
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
- ./scripts/travis/install-deps.sh
|
|
|
|
- sudo apt-get install build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev
|
|
|
|
script:
|
|
|
|
- ./scripts/travis/test-riot.sh
|
|
|
|
- name: Unit Tests
|
|
|
|
script:
|
|
|
|
- npm run test
|
|
|
|
|