2017-07-05 09:01:13 +00: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-19 10:10:13 +00:00
|
|
|
#
|
|
|
|
# unfortunately we do temporarily require sudo as a workaround for
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/8836
|
|
|
|
sudo: required
|
2017-07-05 09:01:13 +00:00
|
|
|
|
2016-08-25 10:56:49 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2017-05-30 14:11:17 +00:00
|
|
|
# make sure we work with a range of node versions.
|
|
|
|
#
|
2018-11-22 18:25:55 +00:00
|
|
|
# Current status of node versions: https://github.com/nodejs/LTS/
|
2019-03-13 20:10:12 +00:00
|
|
|
# Our minimum supported version is Node 10.
|
2018-11-22 18:25:55 +00:00
|
|
|
- 10
|
2019-03-13 20:10:12 +00:00
|
|
|
- 11
|
2017-07-05 08:43:40 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2019-03-13 12:32:46 +00:00
|
|
|
before_install:
|
|
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
|
|
|
|
- export PATH=$HOME/.yarn/bin:$PATH
|
2016-08-25 11:12:20 +00:00
|
|
|
install:
|
2017-06-01 17:02:51 +00:00
|
|
|
# clone the deps with depth 1: we know we will only ever need that one
|
|
|
|
# commit.
|
2019-03-12 11:06:57 +00:00
|
|
|
- scripts/fetch-develop.deps.sh --depth 1 && yarn install
|
2018-11-22 18:25:55 +00:00
|
|
|
script:
|
2019-03-12 11:06:57 +00:00
|
|
|
- CHROME_BIN='/usr/bin/google-chrome-stable' yarn test
|
|
|
|
- yarn lint
|