forked from microsoft/napajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (91 loc) · 2.18 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: node_js
compiler: default
matrix:
exclude:
# Disable the default build and use customized matrix only.
- compiler: default
include:
# Node 6.x Linux (Precise) G++5.4.1
- os: linux
dist: precise
node_js: '6'
compiler: g++-5
addons:
apt:
# The apt source 'ubuntu-toolchain-r-test' is for GCC 5+
# The apt source 'george-edison55-precise-backports' is for CMake 3.2+
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- g++-5
- cmake-data
- cmake
env:
- COMPILER_OVERRIDE="CXX=g++-5 CC=gcc-5"
# Node 6.x OS X (Yosemite) AppleClang 6.1
- os: osx
node_js: '6'
osx_image: xcode6.4
# Node LTS (8.x) Linux (Trusty) G++6.4.0
- os: linux
dist: trusty
node_js: '8'
compiler: g++-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- COMPILER_OVERRIDE="CXX=g++-6 CC=gcc-6"
# Node LTS (8.x) OS X (El Capitan) AppleClang 7.3
- os: osx
node_js: '8'
osx_image: xcode7.3
# Node (9.x) Linux (Trusty) G++6.4.0
- os: linux
dist: trusty
node_js: '9'
compiler: g++-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- COMPILER_OVERRIDE="CXX=g++-6 CC=gcc-6"
# Node (9.x) macOS (Sierra) AppleClang 8.1
- os: osx
node_js: '9'
osx_image: xcode8.3
# Node Current (10.x) Linux (Trusty) G++7.3.0
- os: linux
dist: trusty
node_js: '10'
compiler: g++-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- COMPILER_OVERRIDE="CXX=g++-7 CC=gcc-7"
# Node Current (10.x) macOS (High Sierra) AppleClang 9.1
- os: osx
node_js: '10'
osx_image: xcode9.3
before_install:
- |
if [ $TRAVIS_OS_NAME == linux ]; then
export ${COMPILER_OVERRIDE}
fi
install:
- npm install cmake-js -g
- npm install --no-fetch
script:
- npm test
- npm run unittest