forked from xing/hops
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (40 loc) · 1.09 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
language: node_js
cache:
yarn: false
directories:
- node_modules
before_install:
- npm i -g yarn@latest
env:
global:
- HOST=0.0.0.0
install:
- yarn install --frozen-lockfile
matrix:
include:
- node_js: '10.13'
name: 'Test on Node.js 10'
if: branch =~ /(master|staging|trying|v\d+\.x)/ AND NOT branch =~ /\.tmp$/
script: 'yarn test --maxWorkers=2 --ci'
env:
- CACHE_NAME=node-v10
- node_js: '12.13'
name: 'Test on Node.js 12'
if: branch =~ /(master|staging|trying|v\d+\.x)/ AND NOT branch =~ /\.tmp$/
script: 'yarn test --maxWorkers=2 --ci'
env:
- CACHE_NAME=node-v12
- node_js: '13'
name: 'Test on Node.js 13 (latest)'
if: NOT branch =~ /\.tmp$/
before_script:
- 'yarn lint'
script: 'yarn test --maxWorkers=2 --ci'
env:
- CACHE_NAME=node-v13
- node_js: 'lts/*'
name: 'Canarist test on Node.js latest lts'
if: branch =~ /(master|staging|trying|v\d+\.x)/ AND NOT branch =~ /\.tmp$/
script: 'yarn canarist'
env:
- CACHE_NAME=canary