diff options
Diffstat (limited to 'other/travis/toxcore-script')
-rwxr-xr-x | other/travis/toxcore-script | 22 |
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 | ||
3 | set -e -x | 3 | set -e -x |
4 | 4 | ||
5 | BUILD_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 " | |||
10 | git diff --exit-code | 12 | git diff --exit-code |
11 | 13 | ||
12 | # Build toxcore and run tests. | 14 | # Build toxcore and run tests. |
13 | ./autogen.sh | 15 | export CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1" |
14 | ./configure \ | 16 | cmake -B$BUILD_DIR -H. |
15 | --with-libsodium-libs=$CACHE_DIR/lib \ | 17 | |
16 | --with-libsodium-headers=$CACHE_DIR/include \ | 18 | export 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 | ||
22 | make | 20 | make -C $BUILD_DIR -j `nproc` |
23 | make check | 21 | make -C $BUILD_DIR -j `nproc` test |
24 | if [ -f build/test-suite.log ]; then | ||
25 | cat build/test-suite.log | ||
26 | fi | ||
27 | make dist | ||