open-nomad/.travis.yml
Michael Lange 7a7c8204a7 Lock down nodejs version
The new Travis Trusty image uses node 8 (latest LTS) as the default.
Node 8 is incompatible with some modules used for the UI.
2017-12-15 10:50:06 -08:00

50 lines
1,014 B
YAML

services:
- docker
language: go
go:
- 1.9.x
git:
depth: 300
branches:
only:
- master
matrix:
include:
matrix:
include:
- os: linux
dist: trusty
sudo: required
- os: linux
dist: trusty
sudo: false
env: RUN_UI_TESTS=1 SKIP_NOMAD_TESTS=1
- os: linux
dist: trusty
sudo: false
env: RUN_STATIC_CHECKS=1 SKIP_NOMAD_TESTS=1
- os: osx
osx_image: xcode9.1
cache:
directories:
- ui/node_modules
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ -z "$SKIP_NOMAD_TESTS" ]]; then sudo -E bash ./scripts/travis-mac-priv.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -z "$SKIP_NOMAD_TESTS" ]]; then sudo -E bash ./scripts/travis-linux.sh ; fi
install:
- if [[ -z "$SKIP_NOMAD_TESTS" ]]; then make deps ; fi
- if [[ "$RUN_STATIC_CHECKS" ]]; then make lint-deps ; fi
- if [[ "$RUN_UI_TESTS" ]]; then . $HOME/.nvm/nvm.sh && cd ui && nvm use && cd .. ; fi
script:
- sudo -E "PATH=$PATH" make travis