forked from mapbox/node-pre-gyp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (34 loc) · 1.05 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
language: cpp
sudo: false
# https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
osx_image: xcode8.2
os:
- linux
- osx
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: ['g++-4.8', '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']
env:
matrix:
- NODE_VERSION="6"
- NODE_VERSION="8"
- NODE_VERSION="9"
- NODE_VERSION="10"
before_install:
- if [[ $(uname -s) == 'Linux' ]]; then
export CXX="g++-4.8";
fi;
- source ./scripts/install_node.sh ${NODE_VERSION}
- npm config set loglevel=error
install:
- npm install
before_script:
- npm test
- if [[ ${RETIRE:-false} == true ]]; then ./node_modules/.bin/retire -n; fi;
# test node-webkit usage
- ./scripts/test-node-webkit.sh
script:
# test non-authenticated mode
- unset node_pre_gyp_accessKeyId
- npm test