Bypass npm on Travis so we don't require node at all

This commit is contained in:
Kevin van Zonneveld 2016-02-17 08:44:32 +01:00
parent 72cea95865
commit 1557e9d66a

View File

@ -1,28 +1,14 @@
# We're installing nodejs by hand, as that's not supported on
# Travis OSX testing yet. So language is generic here:
language: generic language: generic
env:
global:
- NODE_VERSION='4.2.1'
matrix: matrix:
include: include:
- os: linux - os: linux
sudo: false sudo: false
- os: osx - os: osx
install: install:
# Install acceptance test dependencies # Install acceptance test dependencies for OSX
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then which gsed || brew install gnu-sed; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then which gsed || brew install gnu-sed; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then which gtimeout || brew install coreutils; fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then which gtimeout || brew install coreutils; fi
# Install nvm
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
# Install Node.js
- nvm install $NODE_VERSION
# Install Node modules
- npm install
# Show versions used # Show versions used
- node --version
- bash --version - bash --version
script: npm run test script: test/acceptance.sh