-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (50 loc) · 1.26 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
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# General configuration
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Unneeded to use the sudo command
sudo: false
# Defines a language
language: node_js
# Branches to build
branches:
only:
- master
- /^greenkeeper-/
except:
- gh-pages
# Never sends email notifications
notifications:
email: false
# Jobs in the matrix
matrix:
# Finish immediately build once one of the jobs fails.
fast_finish: true
# Machines to test
include:
- os: linux
node_js: "8"
env: JOB_PART=test
- os: linux
node_js: "7"
env: JOB_PART=test
- os: linux
node_js: "6"
env: JOB_PART=test
# Install browsers for the tests.
addons:
chrome: stable
firefox: "49.0"
# Convince the shell we’ve got a screen after all.
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Scripts that run after cloning repository and before the tests
before_script:
- npm install
# To run your custom scripts instead of automatic tests (basically the post-install test scripts)
script:
- npm run $JOB_PART:travis
# Send coverage report
after_sucess:
- npm run report-coverage