From 50921070ce5afa907a61ac8c041e1c5ef2092c33 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 13 Jul 2016 14:12:11 +0200 Subject: Move toxcore travis build scripts out of .travis.yml. This is in preparation for having multiple types of build. One of the future builds will be a hstox build, another may be frama-c or some other static analyser. It makes sense to split these up into multiple builds, because each of them can take a while, and running them in parallel will speed things up. Also, the hstox test coverage should be reported separately from the toxcore auto_test coverage. --- other/travis/toxcore-script | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 other/travis/toxcore-script (limited to 'other/travis/toxcore-script') 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 @@ +#!/bin/sh + +set -e -x + +# Check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.h. +../apidsl/_build/apigen.native ./other/apidsl/tox.in.h | $ASTYLE --options=./other/astyle/astylerc > toxcore/tox.h +../apidsl/_build/apigen.native ./other/apidsl/toxav.in.h | $ASTYLE --options=./other/astyle/astylerc > toxav/toxav.h +git diff --exit-code + +# 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 \ + CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1" + +make +make check +if [ -f build/test-suite.log ]; then + cat build/test-suite.log +fi +make dist -- cgit v1.2.3