2016-08-10 19:28:33 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-08-11 20:49:49 +08:00
|
|
|
set -e -u -x
|
|
|
|
. other/travis/env-$ENV.sh
|
2016-08-10 19:28:33 +08:00
|
|
|
|
|
|
|
# Build toxcore and run tests.
|
|
|
|
./autogen.sh
|
2016-08-18 00:36:05 +08:00
|
|
|
./configure \
|
2016-08-10 19:28:33 +08:00
|
|
|
--with-libsodium-libs=$CACHE_DIR/lib \
|
|
|
|
--with-libsodium-headers=$CACHE_DIR/include \
|
|
|
|
--enable-daemon \
|
|
|
|
--enable-logging \
|
2016-08-17 17:52:04 +08:00
|
|
|
--enable-ntox \
|
|
|
|
CFLAGS="-DTRAVIS_ENV=1"
|
2016-08-10 19:28:33 +08:00
|
|
|
|
2016-08-11 20:49:49 +08:00
|
|
|
# We use make instead of RUN $MAKE here, because the autotools build will only
|
|
|
|
# ever run natively on the Linux container, never on a Windows cross compilation
|
|
|
|
# docker instance or an OSX machine.
|
2016-08-18 00:36:05 +08:00
|
|
|
make distcheck -j$NPROC -k
|