From 1f2cda6de8643bb2a9a57539ffa7b51c1ed6c429 Mon Sep 17 00:00:00 2001 From: Lars-Magnus Skog Date: Tue, 5 May 2015 14:20:26 +0200 Subject: [PATCH] use n instead of nvm for iojs support on native modules --- .travis.yml | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09b947e..a826ed0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,39 @@ -language: node_js -node_js: - - "0.8" - - "0.10" +language: c + +before_install: + - rm -rf ~/.nvm + - wget https://raw.githubusercontent.com/visionmedia/n/master/bin/n -qO n + - chmod +x n + - sudo cp n /usr/local/bin/n + - sudo chmod -R a+xw /usr/local + - n --version + branches: only: - master + +script: + - n io latest + - iojs -v; npm -v; + - JOBS=max npm install + - npm test && rm -rf node_modules/ + + - n latest + - node -v; npm -v; + - JOBS=max npm install + - npm test && rm -rf node_modules/ + + - n 0.10 + - node -v; npm -v; + - JOBS=max npm install + - npm test && rm -rf node_modules/ + + - n 0.8 + - npm install npm -g + - node -v; npm -v; + - JOBS=max npm install + - npm test && rm -rf node_modules/ + notifications: email: - r@va.gg @@ -12,7 +41,7 @@ notifications: - raynos2@gmail.com - dominic.tarr@gmail.com - max@maxogden.com - - lars.magnus.skog@gmail.com + - ralphtheninja@riseup.net - david.bjorklund@gmail.com - julian@juliangruber.com - paolo@async.ly @@ -20,4 +49,3 @@ notifications: - matteo.collina@gmail.com - pedro.teixeira@gmail.com - mail@substack.net -script: npm test