From: Anders F Björklund Date: Sun, 1 Apr 2018 12:40:05 +0000 (+0200) Subject: Add small helper to run all Travis tests X-Git-Tag: v3.4.3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04339312647d9767f86cbeb14f2d0f2ecc8d221b;p=thirdparty%2Fccache.git Add small helper to run all Travis tests 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. --- diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 000000000..ee57433a6 --- /dev/null +++ b/.travis.sh @@ -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