forked from node-inspector/v8-profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (56 loc) · 1.52 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
sudo: false
language: cpp
compiler: gcc
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
env:
matrix:
- export NODE_VERSION="0.10"
- export NODE_VERSION="0.12"
- export NODE_VERSION="4"
- export NODE_VERSION="5"
- export NODE_VERSION="6"
- export NODE_VERSION="7"
- export NODE_VERSION="8"
global:
- node_pre_gyp_region="eu-central-1"
git:
depth: 1
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CC=/usr/bin/gcc-4.9;
export CXX=/usr/bin/g++-4.9;
fi
- rm -rf ~/.nvm/ && git clone --depth 1 "https://github.com/creationix/nvm.git" ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- if [ $NODE_VERSION == "0.10" ]; then
npm -g install npm@latest-2;
fi
- export PATH="./node_modules/.bin/:$PATH"
- PUBLISH_BINARY=false
- if [[ $TRAVIS_TAG ]]; then PUBLISH_BINARY=true; fi;
- platform=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/")
install:
- npm install --build-from-source
- npm test
before_script:
- if [[ $PUBLISH_BINARY == true ]]; then node-pre-gyp package testpackage publish --verbose; fi;
script:
- INSTALL_RESULT=0
- if [[ $PUBLISH_BINARY == true ]]; then
INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true;
fi;
- if [[ $INSTALL_RESULT != 0 ]]; then node-pre-gyp unpublish; false; fi
- node-pre-gyp clean
after_success:
- node-pre-gyp info