mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
6c523f9f48
But enable it on circle ci, so at least we have one asan build.
29 lines
583 B
Bash
29 lines
583 B
Bash
#!/bin/sh
|
|
|
|
export PATH=/opt/ghc/7.8.4/bin:/opt/cabal/1.18/bin:/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$PATH
|
|
export PATH=$HOME/.cabal/bin:$PATH
|
|
|
|
CMAKE=cmake
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON"
|
|
# Asan is disabled because it's currently broken on Travis.
|
|
# See https://github.com/travis-ci/travis-ci/issues/9033.
|
|
CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF"
|
|
NPROC=`nproc`
|
|
CURDIR=$PWD
|
|
RUN_TESTS=true
|
|
|
|
RUN() {
|
|
"$@"
|
|
}
|
|
|
|
TESTS() {
|
|
COUNT="$1"; shift
|
|
"$@" || {
|
|
if [ $COUNT -gt 1 ]; then
|
|
TESTS `expr $COUNT - 1` "$@"
|
|
else
|
|
false
|
|
fi
|
|
}
|
|
}
|