forked from visjs/ngx-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 799 Bytes
/
.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
sudo: required
dist: trusty
language: node_js
env:
matrix:
- NODE_VERSION="8" NPM_VERSION="6"
- NODE_VERSION="9" NPM_VERSION="6"
- NODE_VERSION="10" NPM_VERSION="6"
before_install:
- pip install --user codecov
# Prepare node and npm
- nvm install $NODE_VERSION && nvm use $NODE_VERSION
- npm install -g npm@$NPM_VERSION
- npm install
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
script:
- npm run build
- npm run check
- npm test
after_success:
- ./node_modules/.bin/codecov -f coverage/coverage-final.json
addons:
chrome: stable
firefox: "42.0"
apt:
sources:
- ubuntu-toolchain-r-test
# required by node-gyp to build some packages
packages:
- g++-4.8