mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
b5cfd33340
Also, fix the hstox build that was taking half an hour. It now takes 5 minutes. Also, perform distcheck on travis to ensure that make dist works. It's not actually failing the build at the moment due to broken tests.
21 lines
645 B
Bash
Executable File
21 lines
645 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e -x
|
|
|
|
# Build toxcore and run tests.
|
|
./autogen.sh
|
|
./configure \
|
|
--with-libsodium-libs=$CACHE_DIR/lib \
|
|
--with-libsodium-headers=$CACHE_DIR/include \
|
|
--enable-daemon \
|
|
--enable-logging \
|
|
--enable-ntox
|
|
|
|
make -j `nproc`
|
|
# This doesn't currently work on Travis, because the autotools build is broken.
|
|
# It does not look up libsodium by pkg-config, so without the --with flags it
|
|
# won't find it. We don't care that much about distcheck at this point, but we
|
|
# do care whether it configures/builds at all, which is exercised by the make
|
|
# call above. Tests are executed by the cmake build.
|
|
make distcheck -j `nproc` || true
|