Skip to content

Commit

Permalink
Run OSX builds for Node 0.12 and 4 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Sep 11, 2015
1 parent 43286a1 commit bdc8006
Showing 1 changed file with 48 additions and 15 deletions.
63 changes: 48 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
language: node_js

env: SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true CC=gcc-4.7 CXX=g++-4.7 LINK=gcc-4.7 LINKXX=g++-4.7

language: cpp
compiler: gcc

sudo: false

node_js:
- "0.10"
- "0.12"
- "iojs-v1.0"
- "iojs-v1"
- "iojs-v2"
- "iojs-v3"
- "4"
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"

matrix:
fast_finish: true
exclude:
- env: export NODE_VERSION="0.10"
os: osx
- env: export NODE_VERSION="iojs-v1.0"
os: osx
- env: export NODE_VERSION="iojs-v1"
os: osx
- env: export NODE_VERSION="iojs-v2"
os: osx
- env: export NODE_VERSION="iojs-v3"
os: osx

addons:
apt:
Expand All @@ -27,10 +41,29 @@ addons:
- g++-4.7

before_install:
- g++ --version
- git submodule update --init --recursive
- git clone https://github.com/creationix/nvm.git ./.nvm
- 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
- gcc --version
- g++ --version

script:
- npm install
- npm test

after_success: npm run-script coverage
after_success:
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4" ]; then
npm run-script coverage;
fi

cache:
directories:
Expand Down

0 comments on commit bdc8006

Please sign in to comment.