summaryrefslogtreecommitdiff
path: root/.travis
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-03-22 01:20:11 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-03-22 01:20:11 +0000
commitba953148456a8fe1f04509077674375571b1ed05 (patch)
tree3bccd7bf34e6b320aeb0305505bba771fac3ed55 /.travis
parent88814e9f1dd72257ab3a54b8d2b292b9b37787c1 (diff)
Remove bazel build from Travis.
We already have one on Cirrus, and it works fine.
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/bazel-linux35
1 files changed, 0 insertions, 35 deletions
diff --git a/.travis/bazel-linux b/.travis/bazel-linux
deleted file mode 100755
index e76f3f86..00000000
--- a/.travis/bazel-linux
+++ /dev/null
@@ -1,35 +0,0 @@
1#!/bin/sh
2
3ACTION="$1"
4
5set -eu
6
7travis_install() {
8 # Get bazel.
9 wget https://github.com/bazelbuild/bazel/releases/download/2.2.0/bazel-2.2.0-installer-linux-x86_64.sh
10 chmod +x bazel-2.2.0-installer-linux-x86_64.sh
11 ./bazel-2.2.0-installer-linux-x86_64.sh --user
12 echo 'build --jobs=4 --curses=no --verbose_failures' >> $HOME/.bazelrc
13 echo 'build --config=linux' >> $HOME/.bazelrc
14 echo "build --config=$CC" >> $HOME/.bazelrc
15 echo "build --config=remote" >> $HOME/.bazelrc
16 pip install --user yamllint
17}
18
19travis_script() {
20 yamllint -c ../tools/project/yamllint.rc .
21 bazel test \
22 //c-toxcore:license_test \
23 //c-toxcore:readme_test
24
25 # TODO(iphydf): Make tests have a chance to succeed.
26 # Run the tests, but if they fail, at least we should be able to build.
27 # bazel test //c-toxcore/... || bazel build //c-toxcore/...
28 bazel build //c-toxcore/...
29}
30
31if [ "-z" "$ACTION" ]; then
32 "travis_script"
33else
34 "travis_$ACTION"
35fi