From e576165cf1a5ca1feba086eb683f9e4e805fa11f Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 25 Mar 2016 18:41:32 +0000 Subject: [PATCH] Use Travis CI's multi-OS feature --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7c4b2787..491789f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ node_js: - "0.12" - "4" - "5" +os: + - linux + - osx sudo: false addons: apt: @@ -11,7 +14,9 @@ addons: - ubuntu-toolchain-r-test packages: - g++-4.8 -env: - CXX=g++-4.8 +osx_image: xcode7.3 +before_install: + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=g++-4.8; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install homebrew/science/vips; fi after_success: - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js