summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-10 16:12:10 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-10 16:45:50 +0000
commit0b7e29e0197f18ea38a62f8f89a1fe60edb462a0 (patch)
tree943cc7911b8e975dbc4d56a045425571518c08b4 /.travis.yml
parentabc17b0f8997ab07ae66130edd5dc8c43e72c886 (diff)
Add the bazel build as one of the PR-blocking builds.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 416aecc7..d279c4bc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -38,6 +38,30 @@ matrix:
38 install: .travis/$JOB install 38 install: .travis/$JOB install
39 script: .travis/$JOB script 39 script: .travis/$JOB script
40 - stage: "Stage 1" 40 - stage: "Stage 1"
41 env: JOB=bazel-linux
42 compiler: clang
43 addons:
44 apt:
45 packages:
46 - libcv-dev # For av_test.
47 - libhighgui-dev # For av_test.
48 - libopencv-contrib-dev # For av_test.
49 - portaudio19-dev # For av_test.
50 before_install:
51 # Clear bazel installation.
52 - rm -rf $HOME/.cache/bazel/_bazel_$USER/install
53 # Get toktok-stack, which contains the bazel workspace.
54 - cd ..
55 - git clone https://github.com/TokTok/toktok-stack
56 - rm -rf toktok-stack/c-toxcore
57 - mv c-toxcore toktok-stack/
58 - cd toktok-stack/c-toxcore
59 install: .travis/$JOB install
60 script: .travis/$JOB script
61 before_cache:
62 # Clear bazel installation.
63 - rm -rf $HOME/.cache/bazel/_bazel_$USER/install
64 - stage: "Stage 1"
41 if: type IN (push, api, cron) 65 if: type IN (push, api, cron)
42 env: JOB=cmake-win32 66 env: JOB=cmake-win32
43 services: [docker] 67 services: [docker]
@@ -76,6 +100,7 @@ matrix:
76 100
77cache: 101cache:
78 directories: 102 directories:
103 - $HOME/.cache/bazel
79 - $HOME/cache 104 - $HOME/cache
80 - /opt/freebsd/cache 105 - /opt/freebsd/cache
81 106