Moving slow tasks from Travis to Buildkite (#621)

* Update BUILD.bazel

* Update check_gazelle.sh

* Update check_gazelle.sh

* Update check_visibility.sh

* Revert "Update BUILD.bazel"

This reverts commit 8d631fc49a.

* remove travis slow bazel builds

* Add buildkite build status
This commit is contained in:
Preston Van Loon
2018-10-03 21:16:44 -04:00
committed by GitHub
parent c972925dbd
commit ebe5fe2a02
5 changed files with 3 additions and 108 deletions

View File

@@ -10,98 +10,12 @@ matrix:
script:
-
go get github.com/alecthomas/gometalinter && gometalinter --install && gometalinter ./... --deadline=10m --exclude=client/internal/client_helper.go
- os: linux
env:
- todos
install: true # Skip installing go packages
script:
- ./scripts/check-todo.sh
- os: linux
env:
- coverage
script:
- ./scripts/coverage.sh
- bash <(curl -s https://codecov.io/bash)
- os: linux
env: V=0.17.1
before_install:
# Install Bazel
- |
echo "" >> WORKSPACE
echo "go_register_toolchains(go_version = \"host\")" >> WORKSPACE
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
OS=darwin
else
sysctl kernel.unprivileged_userns_clone=1
OS=linux
fi
URL="https://github.com/bazelbuild/bazel/releases/download/${V}/bazel-${V}-installer-${OS}-x86_64.sh"
wget -O install.sh "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
install: true # Skip install go packages.
script:
# Ensure everything builds.
- |
bazel \
--bazelrc=.travis-bazelrc \
build \
//...
# Run all tests.
- |
bazel \
--bazelrc=.travis-bazelrc \
test \
//...
# Check that BUILD files are formatted correctly.
- ./scripts/check_gazelle.sh
# Check that target visibility is correct.
- ./scripts/check_visibility.sh
# Shutdown must be last.
- bazel shutdown
- os: osx
env: V=0.17.1
before_install:
# Install Bazel
- |
echo "" >> WORKSPACE
echo "go_register_toolchains(go_version = \"host\")" >> WORKSPACE
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
OS=darwin
else
sysctl kernel.unprivileged_userns_clone=1
OS=linux
fi
URL="https://github.com/bazelbuild/bazel/releases/download/${V}/bazel-${V}-installer-${OS}-x86_64.sh"
wget -O install.sh "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
install: true # Skip install go packages.
script:
# Ensure everything builds.
- |
bazel \
--bazelrc=.travis-bazelrc \
build \
//...
# Run all tests.
- |
bazel \
--bazelrc=.travis-bazelrc \
test \
//...
# Shutdown must be last.
- bazel shutdown
- language: node_js
os: linux
env: