summaryrefslogtreecommitdiff
path: root/other/travis/toxcore-script
diff options
context:
space:
mode:
Diffstat (limited to 'other/travis/toxcore-script')
-rwxr-xr-xother/travis/toxcore-script25
1 files changed, 25 insertions, 0 deletions
diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script
new file mode 100755
index 00000000..b2ee5d02
--- /dev/null
+++ b/other/travis/toxcore-script
@@ -0,0 +1,25 @@
1#!/bin/sh
2
3set -e -x
4
5# Check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.h.
6../apidsl/_build/apigen.native ./other/apidsl/tox.in.h | $ASTYLE --options=./other/astyle/astylerc > toxcore/tox.h
7../apidsl/_build/apigen.native ./other/apidsl/toxav.in.h | $ASTYLE --options=./other/astyle/astylerc > toxav/toxav.h
8git diff --exit-code
9
10# Build toxcore and run tests.
11./autogen.sh
12./configure \
13 --with-libsodium-libs=$CACHE_DIR/lib \
14 --with-libsodium-headers=$CACHE_DIR/include \
15 --enable-daemon \
16 --enable-logging \
17 --enable-ntox \
18 CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
19
20make
21make check
22if [ -f build/test-suite.log ]; then
23 cat build/test-suite.log
24fi
25make dist