Skip to content

Commit 25e4dcf

Browse files
committed
New .travis.yml for Mac testing.
1 parent e22fec6 commit 25e4dcf

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

.travis.yml

+23-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
sudo: false
2-
env:
3-
- CXX=g++-4.8
4-
language: node_js
5-
6-
node_js:
7-
- 0.8
8-
- 0.10
9-
- 0 #Latest 0.x.x build.
10-
- 3 #Latest io.js build.
11-
- 4.2.4 #LTS
12-
- stable
2+
language: cpp
133

14-
matrix:
15-
allow_failures:
16-
- node_js: 0.8
4+
env:
5+
matrix:
6+
- TRAVIS_NODE_VERSION="0.10"
7+
- TRAVIS_NODE_VERSION="0.12"
8+
- TRAVIS_NODE_VERSION="4"
9+
- TRAVIS_NODE_VERSION="5"
10+
- TRAVIS_NODE_VERSION="6"
11+
- TRAVIS_NODE_VERSION="stable"
1712

1813
addons:
1914
apt:
@@ -28,6 +23,20 @@ addons:
2823
- gcc-4.8
2924

3025
before_script:
26+
# reinstall latest nvm
27+
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh
28+
- nvm install $TRAVIS_NODE_VERSION
29+
- PATH=$PATH:`pwd`/node_modules/.bin
30+
31+
# print versions
32+
- node --version
33+
- npm --version
34+
35+
# use g++-4.8 on Linux
36+
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
37+
- $CXX --version
38+
39+
# Start xvfb
3140
- export DISPLAY=:99.0
3241
- sh -e /etc/init.d/xvfb start
3342

0 commit comments

Comments
 (0)