bash3boilerplate/.travis.yml
2016-02-17 00:09:48 -05:00

21 lines
553 B
YAML

language: generic
env:
global:
- NODE_VERSION='4.2.1'
matrix:
include:
- os: linux
sudo: false
- os: osx
install:
- 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 gtimeout || brew install coreutils; fi
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install $NODE_VERSION
- node --version
- npm install
script: npm run test