Skip to content

Commit

Permalink
Prepare for Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
guw committed Dec 19, 2019
1 parent 0554d7e commit 0f7d13a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc-travis
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build --verbose_failures
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
dist: bionic
sudo: required
language: sh

addons:
apt:
packages:
- libxml2-utils

cache:
directories:
- .bazel_cache
- ~/.bazel_binaries

_linux: &linux
os: linux
_osx: &osx
os: osx
osx_image: xcode10.1

jobs:
include:
# Test
- <<: *linux
- <<: *osx

before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
OS=darwin
else
OS=linux
fi
URL="https://github.com/bazelbuild/bazel/releases/download/2.0.0/bazel-2.0.0-installer-${OS}-x86_64.sh"
wget -O install.sh "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
- cp .bazelrc.travis .bazelrc-local
script:
- |
bash bazel test //...

0 comments on commit 0f7d13a

Please sign in to comment.