From 0b7e29e0197f18ea38a62f8f89a1fe60edb462a0 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 10 Jul 2018 16:12:10 +0000 Subject: Add the bazel build as one of the PR-blocking builds. --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 416aecc7..d279c4bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,30 @@ matrix: - libvpx-dev # For toxav. install: .travis/$JOB install script: .travis/$JOB script + - stage: "Stage 1" + env: JOB=bazel-linux + compiler: clang + addons: + apt: + packages: + - libcv-dev # For av_test. + - libhighgui-dev # For av_test. + - libopencv-contrib-dev # For av_test. + - portaudio19-dev # For av_test. + before_install: + # Clear bazel installation. + - rm -rf $HOME/.cache/bazel/_bazel_$USER/install + # Get toktok-stack, which contains the bazel workspace. + - cd .. + - git clone https://github.com/TokTok/toktok-stack + - rm -rf toktok-stack/c-toxcore + - mv c-toxcore toktok-stack/ + - cd toktok-stack/c-toxcore + install: .travis/$JOB install + script: .travis/$JOB script + before_cache: + # Clear bazel installation. + - rm -rf $HOME/.cache/bazel/_bazel_$USER/install - stage: "Stage 1" if: type IN (push, api, cron) env: JOB=cmake-win32 @@ -76,6 +100,7 @@ matrix: cache: directories: + - $HOME/.cache/bazel - $HOME/cache - /opt/freebsd/cache -- cgit v1.2.3