forked from sass/node-sass
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (63 loc) · 1.47 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
language: cpp
compiler: gcc
sudo: false
os:
- linux
- osx
env:
global:
- SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true
matrix:
- export NODE_VERSION="0.10"
- export NODE_VERSION="0.12"
- export NODE_VERSION="iojs-v1.0"
- export NODE_VERSION="iojs-v1"
- export NODE_VERSION="iojs-v2"
- export NODE_VERSION="iojs-v3"
- export NODE_VERSION="4"
- export NODE_VERSION="5"
matrix:
fast_finish: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.7
- g++-4.7
before_install:
- git submodule update --init --recursive
- git clone https://github.com/creationix/nvm.git ./.nvm
- git -C .nvm checkout "$(git -C .nvm describe --tags `git -C .nvm rev-list --tags --max-count=1`)"
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm config set python `which python`
- 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
- nvm --version
- node --version
- npm --version
- gcc --version
- g++ --version
script:
- npm install
- npm test
after_success:
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4" ]; then
npm run-script coverage;
fi
cache:
directories:
- $HOME/.node-gyp
- $HOME/.npm
- node_modules
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/8dddd234a441d0d07664
on_success: change