-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
67 lines (63 loc) · 1.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
sudo: required
dist: focal
language: node_js
after_success: npm run coverage && cat ./coverage/lcov.info | coveralls
env:
matrix:
- NODE_VERSION="12" DISPLAY=:99
- NODE_VERSION="14" DISPLAY=:99
services:
- xvfb
- docker
addons:
# From some tests it seems you can only have one firefox addon.
# Adding two results in the last one defined being the one installed.
firefox: latest
apt:
sources:
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
packages:
- google-chrome-stable
cache:
directories:
- 'node_modules'
before_script:
- npm install -g jshint
- npm install -g istanbul
- npm install -g istanbul-coveralls
- npm install -g nodeunit
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- export COVERALLS_SERVICE_NAME=travis-ci
- ./docker-build-images.sh
- cd core
- npm i
- npm install .
- npm run coverage
- cd ..
- cd cli
- npm i
- npm install . -g
- xvfb-run npm run test
- xvfb-run ./runTests.sh
- cd ..
- ./docker-build-images.sh
after_script:
- cd core
- ../cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT || true
before_install:
# Prepare node and npm
- nvm install $NODE_VERSION && nvm use $NODE_VERSION
- npm install -g snyk
# Show environment info
- node --version
- npm --version
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/f3499197be7208e15199
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false