forked from mochajs/mocha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.02 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
###
### .travis.yml
###
# these are executed in order. each must pass for the next to be run
stages:
- test # all tests
# defaults
language: node_js
node_js: '12'
# `nvm install` happens before the cache is restored, which means
# we must install our own npm elsewhere (`~/npm`)
before_install: |
[[ ! -x ~/npm/node_modules/.bin/npm ]] && {
# caching feature creates `~/npm` for us
cd ~/npm && npm install npm
cd -
} || true
# avoids bugs around https://github.com/travis-ci/travis-ci/issues/5092
export PATH=~/npm/node_modules/.bin:$PATH
# this avoids compilation in most cases (where we don't need it)
install: npm ci
cache:
directories:
- ~/.npm # cache npm's cache
- ~/npm # cache latest npm
jobs:
include:
- script: npm start test.browser
name: 'Browser'
node_js: 12
addons:
artifacts:
paths:
- .karma/
- ./mocha.js
chrome: stable
sauce_connect: true
env:
- 'NODE_OPTIONS="--trace-warnings"'
notifications:
email: false