summaryrefslogtreecommitdiff
path: root/.travis
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-18 23:32:04 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-21 17:31:22 +0000
commit2b73b6298b1a496895b0baba90178948f6efa5e1 (patch)
treefeff538104018d02842c084c034e30ab9a0b5639 /.travis
parent74e685b497ced2f899659e8df679eeef0e056204 (diff)
Run project tests like yamllint_test.
We check that: * The license is GPLv3. * .travis.yml conforms with the toktok style specification. * There exists a README.md file.
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/bazel-linux11
1 files changed, 8 insertions, 3 deletions
diff --git a/.travis/bazel-linux b/.travis/bazel-linux
index 1e19d640..b157437d 100755
--- a/.travis/bazel-linux
+++ b/.travis/bazel-linux
@@ -6,15 +6,20 @@ set -eu
6 6
7travis_install() { 7travis_install() {
8 # Get bazel. 8 # Get bazel.
9 wget https://github.com/bazelbuild/bazel/releases/download/0.15.0/bazel-0.15.0-installer-linux-x86_64.sh 9 wget https://github.com/bazelbuild/bazel/releases/download/0.16.0/bazel-0.16.0-installer-linux-x86_64.sh
10 chmod +x bazel-0.15.0-installer-linux-x86_64.sh 10 chmod +x bazel-0.16.0-installer-linux-x86_64.sh
11 ./bazel-0.15.0-installer-linux-x86_64.sh --user 11 ./bazel-0.16.0-installer-linux-x86_64.sh --user
12 echo 'build --jobs=4 --curses=no --verbose_failures' >> $HOME/.bazelrc 12 echo 'build --jobs=4 --curses=no --verbose_failures' >> $HOME/.bazelrc
13 echo 'build --config=linux' >> $HOME/.bazelrc 13 echo 'build --config=linux' >> $HOME/.bazelrc
14 echo "build --config=$CC" >> $HOME/.bazelrc 14 echo "build --config=$CC" >> $HOME/.bazelrc
15 pip install --user yamllint
15} 16}
16 17
17travis_script() { 18travis_script() {
19 bazel test //c-toxcore:license_test
20 bazel test //c-toxcore:readme_test
21 bazel test //c-toxcore:yamllint_test
22
18 # TODO(iphydf): Make tests have a chance to succeed. 23 # TODO(iphydf): Make tests have a chance to succeed.
19 # Run the tests, but if they fail, at least we should be able to build. 24 # Run the tests, but if they fail, at least we should be able to build.
20 # bazel test //c-toxcore/... || bazel build //c-toxcore/... 25 # bazel test //c-toxcore/... || bazel build //c-toxcore/...