diff options
Diffstat (limited to '.travis/bazel-linux')
-rwxr-xr-x | .travis/bazel-linux | 35 |
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 | |||
3 | ACTION="$1" | ||
4 | |||
5 | set -eu | ||
6 | |||
7 | travis_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 | |||
19 | travis_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 | |||
31 | if [ "-z" "$ACTION" ]; then | ||
32 | "travis_script" | ||
33 | else | ||
34 | "travis_$ACTION" | ||
35 | fi | ||