mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-04-25 13:29:40 +00:00
Document travis.yml
This commit is contained in:
parent
33887625a7
commit
72cea95865
10
.travis.yml
10
.travis.yml
@ -1,3 +1,5 @@
|
|||||||
|
# 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:
|
env:
|
||||||
global:
|
global:
|
||||||
@ -8,13 +10,19 @@ matrix:
|
|||||||
sudo: false
|
sudo: false
|
||||||
- os: osx
|
- os: osx
|
||||||
install:
|
install:
|
||||||
|
# Install acceptance test dependencies
|
||||||
- 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
|
- rm -rf ~/.nvm
|
||||||
- git clone https://github.com/creationix/nvm.git ~/.nvm
|
- git clone https://github.com/creationix/nvm.git ~/.nvm
|
||||||
- source ~/.nvm/nvm.sh
|
- source ~/.nvm/nvm.sh
|
||||||
|
# Install Node.js
|
||||||
- nvm install $NODE_VERSION
|
- nvm install $NODE_VERSION
|
||||||
- node --version
|
# Install Node modules
|
||||||
- npm install
|
- npm install
|
||||||
|
# Show versions used
|
||||||
|
- node --version
|
||||||
|
- bash --version
|
||||||
script: npm run test
|
script: npm run test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user