2016-01-19 23:44:04 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2015-10-08 17:54:20 +00:00
|
|
|
|
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2018-05-21 21:19:16 +00:00
|
|
|
- "1.10.2"
|
2015-10-08 17:54:20 +00:00
|
|
|
|
2018-01-10 22:05:57 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
git:
|
|
|
|
depth: 300
|
|
|
|
|
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-12-20 23:41:33 +00:00
|
|
|
allow_failures:
|
|
|
|
- os: osx
|
|
|
|
fast_finish: true
|
2017-10-19 04:55:07 +00:00
|
|
|
|
2016-11-01 12:53:13 +00:00
|
|
|
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
|
2017-12-14 01:04:15 +00:00
|
|
|
- if [[ "$RUN_UI_TESTS" ]]; then curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.0.1 ; fi
|
|
|
|
- if [[ "$RUN_UI_TESTS" ]]; then export PATH="$HOME/.yarn/bin:$PATH" ; fi
|
2016-08-17 04:09:18 +00:00
|
|
|
|
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
|
2017-12-14 20:29:55 +00:00
|
|
|
- if [[ "$RUN_UI_TESTS" ]]; then . $HOME/.nvm/nvm.sh && cd ui && nvm use && cd .. ; fi
|
2015-10-08 17:54:20 +00:00
|
|
|
|
|
|
|
script:
|
2017-08-22 19:03:55 +00:00
|
|
|
- sudo -E "PATH=$PATH" make travis
|