Skip to content

Commit

Permalink
New .travis.yml for Mac testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed May 25, 2016
1 parent e22fec6 commit 25e4dcf
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
sudo: false
env:
- CXX=g++-4.8
language: node_js

node_js:
- 0.8
- 0.10
- 0 #Latest 0.x.x build.
- 3 #Latest io.js build.
- 4.2.4 #LTS
- stable
language: cpp

matrix:
allow_failures:
- node_js: 0.8
env:
matrix:
- TRAVIS_NODE_VERSION="0.10"
- TRAVIS_NODE_VERSION="0.12"
- TRAVIS_NODE_VERSION="4"
- TRAVIS_NODE_VERSION="5"
- TRAVIS_NODE_VERSION="6"
- TRAVIS_NODE_VERSION="stable"

addons:
apt:
Expand All @@ -28,6 +23,20 @@ addons:
- gcc-4.8

before_script:
# reinstall latest nvm
- 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
- nvm install $TRAVIS_NODE_VERSION
- PATH=$PATH:`pwd`/node_modules/.bin

# print versions
- node --version
- npm --version

# use g++-4.8 on Linux
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
- $CXX --version

# Start xvfb
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

Expand Down

0 comments on commit 25e4dcf

Please sign in to comment.