Travis: use build matrix for dual os

This commit is contained in:
Jeffrey Morgan 2015-11-24 15:45:08 -05:00
Родитель d804a20527
Коммит f03f307b57
1 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -1,6 +1,5 @@
cache:
directories:
- resources
- node_modules
before_install:
@ -10,11 +9,15 @@ before_install:
script:
- npm install
- npm test
- '[ "${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'
os:
- osx
- linux
matrix:
include:
- os: linux
services:
- docker
- os: osx
language: generic