Travis: fix node version

Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
Jeffrey Morgan 2015-11-24 15:55:19 -05:00
parent f03f307b57
commit 179f437c35
2 changed files with 14 additions and 7 deletions

View File

@ -2,22 +2,22 @@ cache:
directories:
- node_modules
before_install:
- brew unlink node
- brew update
- brew install homebrew/versions/node4-lts
install: ./ci/install
script:
- npm install
- '[ "${TRAVIS_OS_NAME}" = "linux" ] && npm test || false'
- '[ "${TRAVIS_OS_NAME}" = "linux" && "${TRAVIS_PULL_REQUEST}" = "false" ] && npm run integration || false'
- '[ "${TRAVIS_OS_NAME}" = "osx" && "${TRAVIS_PULL_REQUEST}" = "false" ] && ./ci/release || false'
- '[ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && npm run integration || false'
- '[ "${TRAVIS_OS_NAME}" = "osx" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && ./ci/release-mac || false'
matrix:
include:
- os: linux
services:
- docker
- docker
language: node_js
node_js:
- "4.1"
- os: osx
language: generic

7
ci/install Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew unlink node
brew update
brew install homebrew/versions/node4-lts
fi