fb55717b0c
Noticed that the protobuf files are out of sync with ones generated by 1.2.0 protoc go plugin. The cause for these files seem to be related to release processes, e.g. [0.9.0-beta1 preperation](ecec3d38de (diff-da4da188ee496377d456025c2eab4e87)
), and [0.9.0-beta3 preperation](b849d84f2f
). This restores the changes to that of the pinned protoc version and fails build if protobuf files are out of sync. Sample failing Travis job is that of the first commit change: https://travis-ci.org/hashicorp/nomad/jobs/506285085
87 lines
2.3 KiB
YAML
87 lines
2.3 KiB
YAML
services:
|
|
- docker
|
|
|
|
language: go
|
|
|
|
go:
|
|
- "1.x"
|
|
|
|
addons:
|
|
chrome: stable
|
|
|
|
git:
|
|
depth: 300
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: GOTEST_PKGS="./api"
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: GOTEST_PKGS="./client"
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: GOTEST_PKGS="./drivers/docker"
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: GOTEST_PKGS="./drivers/exec"
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: GOTEST_PKGS="./nomad"
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: GOTEST_PKGS_EXCLUDE="./api|./client|./drivers/docker|./drivers/exec|./nomad"
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: ENABLE_RACE=1
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: false
|
|
env: RUN_WEBSITE_TESTS=1 SKIP_NOMAD_TESTS=1
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: false
|
|
env: RUN_UI_TESTS=1 SKIP_NOMAD_TESTS=1
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: false
|
|
env: RUN_STATIC_CHECKS=1 SKIP_NOMAD_TESTS=1
|
|
- os: osx
|
|
osx_image: xcode9.1
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
env: RUN_E2E_TESTS=1 SKIP_NOMAD_TESTS=1
|
|
allow_failures:
|
|
# Allow osx to fail as its flaky
|
|
- os: osx
|
|
#FIXME Allow race enabled builds to fail for now.
|
|
- env: ENABLE_RACE=1
|
|
fast_finish: true
|
|
|
|
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
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$RUN_STATIC_CHECKS" ]]; then sudo -E bash ./scripts/vagrant-linux-priv-protoc.sh; fi
|
|
- 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
|
|
|
|
install:
|
|
- if [[ -z "$SKIP_NOMAD_TESTS" ]] || [[ "$RUN_STATIC_CHECKS" ]]; 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" GOTESTSUM_JUNITFILE=/tmp/results.xml make travis
|
|
|
|
after_script:
|
|
- cat /tmp/results.xml
|