summaryrefslogtreecommitdiff
path: root/other/travis/toxcore-script
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-11 13:49:49 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-12 20:49:50 +0200
commit35932b5381886f1d650d2cf853384273d080b821 (patch)
tree56f36bb7f57f1271a41405a361125f1b5e06dabc /other/travis/toxcore-script
parent11de2c222f31f9df85bcee99c5552a21a2b4895c (diff)
Add "make install" step to Travis build.
Diffstat (limited to 'other/travis/toxcore-script')
-rwxr-xr-xother/travis/toxcore-script11
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
3set -e -x 3set -e -u -x
4 4. other/travis/env-$ENV.sh
5BUILD_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.
15export CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1" 14export CFLAGS="-O0 -Wall -Wextra -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
16cmake -B$BUILD_DIR -H. 15RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX
17 16
18export CTEST_OUTPUT_ON_FAILURE=1 17export CTEST_OUTPUT_ON_FAILURE=1
19 18
20make -C $BUILD_DIR -j `nproc` 19RUN $MAKE -C $BUILD_DIR -j`nproc`
21make -C $BUILD_DIR -j `nproc` test 20RUN $MAKE -C $BUILD_DIR -j`nproc` test