This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
.travis.yml
59 lines (59 loc) · 1.55 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
language: node_js
dist: xenial
sudo: required
node_js:
- '8'
- '9'
- '10'
- '11'
- '12'
matrix:
fast_finish: true
allow_failures:
- os: windows
os:
- linux
- osx
- windows
cache:
directories:
- node_modules
- /usr/local/Cellar
env:
- NODE_ENV=travis
services:
- mongodb
- xvfb
addons:
apt:
packages:
- g++
- gcc
- clang
chrome: stable
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update && brew tap mongodb/brew && brew install mongodb-community@4.2 && brew services start mongodb-community@4.2; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install mongodb; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then mkdir "C:\data\db"; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then "C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --dbpath="c:\data\db"; fi
# - npm install webdriver-manager -g && webdriver-manager update
- npm install nsp -g
# - npm install snyk -g
- 'export PATH=$PATH:/usr/lib/chromium-browser/'
- 'export DISPLAY=:99.0'
# before_script:
# - snyk auth $SNYK_TOKEN
# - snyk test
after_script:
- nsp check
# - snyk test
- gulp test:coverage
- npm install lcov-result-merger@~1.2.0 -g
- lcov-result-merger 'coverage/**/lcov.info' | node_modules/coveralls/bin/coveralls.js
notifications:
webhooks:
urls:
- $GITTER_IM_URL
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always