mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-19 06:37:51 +00:00
21 lines
553 B
YAML
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
|