2016-08-10 19:28:33 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# 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-12-12 04:38:26 +08:00
|
|
|
--enable-ntox \
|
|
|
|
--with-log-level=TRACE
|
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-12-12 04:38:26 +08:00
|
|
|
make -j$NPROC -k
|
2016-08-18 00:36:05 +08:00
|
|
|
make distcheck -j$NPROC -k
|