-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
55 lines (48 loc) · 1006 Bytes
/
.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
language: node_js
node_js:
- "8"
- "7"
- "6"
compiler: gcc
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.7
- g++-4.7
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then
sudo apt-get install -y libcurl4-openssl-dev libssl-dev;
fi
- npm install -g typescript
- npm install -g mocha
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CC="gcc-4.7";
export CXX="g++-4.7";
export LINK="gcc-4.7";
export LINKXX="g++-4.7";
fi
- node --version
- npm --version
- gcc --version
- g++ --version
script:
- npm run build
- npm test
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $TRAVIS_NODE_VERSION == "6" ]; then
npm run lint || exit 1;
fi
cache:
directories:
- $HOME/.node-gyp
- $HOME/.npm
- node_modules
after_success:
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $TRAVIS_NODE_VERSION == "6" ]; then
npm run coverage;
npm run coveralls;
fi