diff options
Diffstat (limited to 'other')
-rwxr-xr-x | other/travis/autotools-after_script | 3 | ||||
l--------- | other/travis/autotools-install | 1 | ||||
-rwxr-xr-x | other/travis/autotools-script | 20 | ||||
-rwxr-xr-x | other/travis/toxcore-script | 22 |
4 files changed, 32 insertions, 14 deletions
diff --git a/other/travis/autotools-after_script b/other/travis/autotools-after_script new file mode 100755 index 00000000..0f4ddcd5 --- /dev/null +++ b/other/travis/autotools-after_script | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e -x | ||
diff --git a/other/travis/autotools-install b/other/travis/autotools-install new file mode 120000 index 00000000..7174a278 --- /dev/null +++ b/other/travis/autotools-install | |||
@@ -0,0 +1 @@ | |||
toxcore-install \ No newline at end of file | |||
diff --git a/other/travis/autotools-script b/other/travis/autotools-script new file mode 100755 index 00000000..284a52d4 --- /dev/null +++ b/other/travis/autotools-script | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e -x | ||
4 | |||
5 | # Build toxcore and run tests. | ||
6 | ./autogen.sh | ||
7 | ./configure \ | ||
8 | --with-libsodium-libs=$CACHE_DIR/lib \ | ||
9 | --with-libsodium-headers=$CACHE_DIR/include \ | ||
10 | --enable-daemon \ | ||
11 | --enable-logging \ | ||
12 | --enable-ntox | ||
13 | |||
14 | make -j `nproc` | ||
15 | # This doesn't currently work on Travis, because the autotools build is broken. | ||
16 | # It does not look up libsodium by pkg-config, so without the --with flags it | ||
17 | # won't find it. We don't care that much about distcheck at this point, but we | ||
18 | # do care whether it configures/builds at all, which is exercised by the make | ||
19 | # call above. Tests are executed by the cmake build. | ||
20 | make distcheck -j `nproc` || true | ||
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 | ||