summaryrefslogtreecommitdiff
path: root/other/travis/toxcore-script
diff options
context:
space:
mode:
Diffstat (limited to 'other/travis/toxcore-script')
-rwxr-xr-xother/travis/toxcore-script22
1 files changed, 8 insertions, 14 deletions
diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script
index b99bbe5b..ae6f4c47 100755
--- a/other/travis/toxcore-script
+++ b/other/travis/toxcore-script
@@ -2,6 +2,8 @@
2 2
3set -e -x 3set -e -x
4 4
5BUILD_DIR=_build
6
5# Check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.h. 7# 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 8../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 9../apidsl/_build/apigen.native other/apidsl/toxav.in.h | $ASTYLE --options=other/astyle/astylerc > toxav/toxav.h
@@ -10,18 +12,10 @@ $ASTYLE --options=other/astyle/astylerc `find . -name "*.[ch]" -and -not -name "
10git diff --exit-code 12git diff --exit-code
11 13
12# Build toxcore and run tests. 14# Build toxcore and run tests.
13./autogen.sh 15export CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
14./configure \ 16cmake -B$BUILD_DIR -H.
15 --with-libsodium-libs=$CACHE_DIR/lib \ 17
16 --with-libsodium-headers=$CACHE_DIR/include \ 18export CTEST_OUTPUT_ON_FAILURE=1
17 --enable-daemon \
18 --enable-logging \
19 --enable-ntox \
20 CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
21 19
22make 20make -C $BUILD_DIR -j `nproc`
23make check 21make -C $BUILD_DIR -j `nproc` test
24if [ -f build/test-suite.log ]; then
25 cat build/test-suite.log
26fi
27make dist