2016-08-11 20:49:49 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Globally used environment variables.
|
|
|
|
export CACHE_DIR=$HOME/cache
|
|
|
|
export OPAMROOT=$CACHE_DIR/.opam
|
|
|
|
export LD_LIBRARY_PATH=$CACHE_DIR/lib
|
|
|
|
export PKG_CONFIG_PATH=$CACHE_DIR/lib/pkgconfig
|
|
|
|
export ASTYLE=$CACHE_DIR/astyle/build/gcc/bin/astyle
|
2016-08-25 06:52:34 +08:00
|
|
|
export CFLAGS="-O3 -DTRAVIS_ENV=1"
|
2016-12-06 06:00:05 +08:00
|
|
|
export CMAKE_EXTRA_FLAGS="-DERROR_ON_WARNING=ON -DBUILD_NTOX=ON"
|
2016-08-11 20:49:49 +08:00
|
|
|
|
|
|
|
BUILD_DIR=_build
|
2017-01-19 23:58:03 +08:00
|
|
|
MAX_TEST_RETRIES=3
|
2016-11-11 07:45:48 +08:00
|
|
|
|
|
|
|
# Workaround for broken Travis image.
|
|
|
|
export TERM=xterm
|