forked from mapbox/node-pre-gyp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (64 loc) · 1.9 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
61
62
63
64
65
66
67
68
69
70
language: node_js
services:
- xvfb
dist: bionic
##### WARNING
# node-pre-gyp tests are not concurrency safe
# such that in the below travis builds we cannot
# have more than one run with the same node version
# otherwise they will clobber each other
#####
matrix:
include:
# Test node v10 with request override + coverage reporting
- os: linux
node_js: 10
# mock s3 on jobs that post coverage
# to allow coverage to work consistently
# across PRs from external contributors
env:
- node_pre_gyp_mock_s3=true
before_install:
- npm install request
- npm install --package-lock-only
script:
- npm run lint
- npm run coverage
after_script:
- npm run upload-coverage
# Test node v12 coverage reporting
- os: linux
node_js: 12
# mock s3 on jobs that post coverage
# to allow coverage to work consistently
# across PRs from external contributors
env:
- node_pre_gyp_mock_s3=true
script:
- npm run coverage
after_script:
- npm run upload-coverage
# Test node v14
- os: linux
node_js: 14
# Test node v16
- os: linux
node_js: 16
# Test node v8
- os: linux
node_js: 8
# Test node webkit
# broken per https://github.com/mapbox/node-pre-gyp/issues/614
# - os: linux
# node_js: 10
# addons:
# apt:
# sources: [ 'ubuntu-toolchain-r-test' ]
# packages: ['xvfb','libasound2','libx11-6','libglib2.0-0','libgtk2.0-0','libatk1.0-0','libgdk-pixbuf2.0-0','libcairo2','libfreetype6','libfontconfig1','libxcomposite1','libasound2','libxdamage1','libxext6','libxfixes3','libnss3','libnspr4','libgconf-2-4','libexpat1','libdbus-1-3','libudev1']
# script:
# # test node-webkit usage
# - ./scripts/test-node-webkit.sh
install:
- npm ci --engine-strict
script:
- npm test