]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add small helper to run all Travis tests
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Sun, 1 Apr 2018 12:40:05 +0000 (14:40 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Apr 2018 19:51:15 +0000 (21:51 +0200)
The idea behind this script is to run the same checks as .travis.yml
but locally instead. It is not identical, but should be close enough.

Note: this does not include any tests for the osx or cuda platforms,
only the linux targets - although that does include the mingw build.

.travis.sh [new file with mode: 0755]

diff --git a/.travis.sh b/.travis.sh
new file mode 100755 (executable)
index 0000000..ee57433
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh -ex
+
+make travis CC=clang
+make travis CC=gcc
+make travis CC=i686-w64-mingw32-gcc HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"
+make travis CC=clang CFLAGS="-fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0"
+make travis CC=clang CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
+make travis CC=clang TEST=analyze