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-11 20:49:49 +08:00
|
|
|
RUN ./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 \
|
|
|
|
--enable-ntox
|
|
|
|
|
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 01:05:27 +08:00
|
|
|
make distcheck -j`nproc` -k
|