summaryrefslogtreecommitdiff
path: root/other/travis/toxcore-script
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-07-13 14:12:11 +0200
committeriphydf <iphydf@users.noreply.github.com>2016-08-12 00:07:05 +0100
commit50921070ce5afa907a61ac8c041e1c5ef2092c33 (patch)
treea7b4b9632a648d603f7eaa45fac198d2377e18a7 /other/travis/toxcore-script
parent6f3e689eebb467793247e0693467647a8daed9e9 (diff)
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.
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