Skip to content

Commit

Permalink
Travis config that builds bazel from scratch
Browse files Browse the repository at this point in the history
Uses a controlled docker container to perform the build, as there seems to be a weird hanging issue with workers in the Travis Ubuntu container.

This also helps control which packages are actually required for a successful build (Travis brings tons of default packages).
  • Loading branch information
ochafik committed Dec 1, 2017
1 parent 7954083 commit cdbd1b3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
- docker
script:
# Ideally we'd just run compile.sh here:
#
# - VERBOSE=yes bash ./compile.sh
#
# Unfortunately bazel workers seem to hang in Travis right now so we test the
# build from scratch in a controlled Docker container (that's... a docker
# inside a docker inside a VM). This also helps test which packages are actually
# required for a successful build from scratch (Travis otherwise has tons of
# installed installed by default).
#
# Note: Verbosity is to avoid being killed by Travis after 10min w/o output.
- echo "set -ex" > docker-test.sh
- echo "apt-get update" >> docker-test.sh
- echo "apt-get install -y automake g++ libtool make curl default-jdk git python unzip wget zip" >> docker-test.sh
- echo "VERBOSE=yes bash ./compile.sh" >> docker-test.sh
- docker run --rm -v `pwd`:`pwd` -w `pwd` -it debian:stable bash docker-test.sh

0 comments on commit cdbd1b3

Please sign in to comment.