open-nomad/.travis.yml

54 lines
992 B
YAML
Raw Normal View History

services:
- docker
2015-10-08 17:54:20 +00:00
language: go
go:
2017-08-24 23:44:37 +00:00
- 1.9.x
2015-10-08 17:54:20 +00:00
2017-09-19 14:47:10 +00:00
git:
depth: 300
2015-10-08 17:54:20 +00:00
branches:
only:
- master
2017-09-19 14:47:10 +00:00
matrix:
include:
2017-10-19 04:55:07 +00:00
matrix:
include:
- os: linux
dist: trusty
sudo: required
- os: linux
dist: trusty
2017-10-24 17:49:53 +00:00
sudo: false
2017-10-19 04:55:07 +00:00
env: RUN_UI_TESTS=1 SKIP_NOMAD_TESTS=1
2017-10-24 17:49:53 +00:00
- os: linux
dist: trusty
sudo: false
env: RUN_STATIC_CHECKS=1 SKIP_NOMAD_TESTS=1
2017-10-19 04:55:07 +00:00
- os: osx
osx_image: xcode9.1
2017-11-02 18:12:18 +00:00
matrix:
allow_failures:
- os: osx
osx_image: xcode9.1
2017-09-19 14:47:10 +00:00
cache:
directories:
- ui/node_modules
before_install:
2017-10-24 17:49:53 +00:00
- 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
2015-10-08 17:54:20 +00:00
install:
2017-10-24 17:49:53 +00:00
- if [[ -z "$SKIP_NOMAD_TESTS" ]]; then make deps ; fi
- if [[ "$RUN_STATIC_CHECKS" ]]; then make lint-deps ; fi
2015-10-08 17:54:20 +00:00
script:
- sudo -E "PATH=$PATH" make travis