-
-
Notifications
You must be signed in to change notification settings - Fork 184
/
.travis.yml
43 lines (36 loc) · 839 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
39
40
41
42
43
sudo: false
git:
depth: 10
branches:
only:
- master
language: node_js
cache: yarn
matrix:
include:
- node_js: '12'
script: yarn pretest
env: CI=pretest
# Yarn doesn't support node@4
# - node_js: '4'
# script: yarn test:ci
# env: CI=tests 4
- node_js: '6'
script: yarn test:ci
env: CI=tests 6
- node_js: '8'
script: yarn test:ci
env: CI=tests 8
- node_js: '10'
script: yarn test:ci
env: CI=tests 10
- node_js: '12'
script: yarn test:ci
env: CI=coverage 12
- node_js: '13'
script: yarn test:ci
env: CI=coverage 13
before_install:
- yarn install --ignore-engines
after_success:
- if [ "$CI" = "coverage" ]; then cat ./.coverage/lcov.info | ./node_modules/.bin/coveralls --verbose && rm -rf ./coverage; fi