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.
--- /dev/null
+#!/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