Skip to content

Commit

Permalink
Simplify Node versions in Travis Ci (sass#1500)
Browse files Browse the repository at this point in the history
Previous we manually installed NVM and did the version switching
ourselves. This was required because Trvais didn't support NVM
on OSX builds. This has since [been fixed][1] so lets see how it
goes.

[1:][travis-ci/travis-ci#2311]
  • Loading branch information
xzyfer committed Apr 29, 2016
1 parent b850684 commit 0bc5da4
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
language: cpp
language: node_js
node_js:
- "5"
- "4"
- "0.12"
- "0.10"
- "iojs"

compiler: gcc
sudo: false

Expand All @@ -9,11 +16,6 @@ os:
env:
global:
- SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true
matrix:
- export NODE_VERSION="0.10"
- export NODE_VERSION="0.12"
- export NODE_VERSION="4"
- export NODE_VERSION="5"

matrix:
fast_finish: true
Expand All @@ -28,11 +30,6 @@ addons:

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";
Expand Down

0 comments on commit 0bc5da4

Please sign in to comment.