diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-11 13:49:49 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-12 20:49:50 +0200 |
commit | 35932b5381886f1d650d2cf853384273d080b821 (patch) | |
tree | 56f36bb7f57f1271a41405a361125f1b5e06dabc /other/travis/toxcore-script | |
parent | 11de2c222f31f9df85bcee99c5552a21a2b4895c (diff) |
Add "make install" step to Travis build.
Diffstat (limited to 'other/travis/toxcore-script')
-rwxr-xr-x | other/travis/toxcore-script | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script index ae6f4c47..ed9377fe 100755 --- a/other/travis/toxcore-script +++ b/other/travis/toxcore-script | |||
@@ -1,8 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | set -e -x | 3 | set -e -u -x |
4 | 4 | . other/travis/env-$ENV.sh | |
5 | BUILD_DIR=_build | ||
6 | 5 | ||
7 | # Check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.h. | 6 | # Check if toxcore.h and toxav.h match apidsl tox.in.h and toxav.in.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/tox.in.h | $ASTYLE --options=other/astyle/astylerc > toxcore/tox.h |
@@ -13,9 +12,9 @@ git diff --exit-code | |||
13 | 12 | ||
14 | # Build toxcore and run tests. | 13 | # Build toxcore and run tests. |
15 | export CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1" | 14 | export CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1" |
16 | cmake -B$BUILD_DIR -H. | 15 | RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX |
17 | 16 | ||
18 | export CTEST_OUTPUT_ON_FAILURE=1 | 17 | export CTEST_OUTPUT_ON_FAILURE=1 |
19 | 18 | ||
20 | make -C $BUILD_DIR -j `nproc` | 19 | RUN $MAKE -C $BUILD_DIR -j`nproc` |
21 | make -C $BUILD_DIR -j `nproc` test | 20 | RUN $MAKE -C $BUILD_DIR -j`nproc` test |