aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 9b690d10..531eec3e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,15 +33,23 @@ install:
- popd
before_script:
-- mkdir build && cd build
-- cmake -DMATRIX_DOC_PATH="matrix-doc" -DGTAD_PATH="gtad/gtad" -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} ..
+- mkdir build && pushd build
+- cmake -DMATRIX_DOC_PATH="matrix-doc" -DGTAD_PATH="gtad/gtad" -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DCMAKE_INSTALL_PREFIX=../install ..
- cmake --build . --target update-api
+- popd
script:
+- cmake --build build --target all
+- cmake --build build --target install
+# Build qmc-example with the installed library
+- mkdir build-example && pushd build-example
+- cmake -DCMAKE_PREFIX_PATH=../install ../examples
- cmake --build . --target all
-- cd ..
+- popd
+# Build and install with qmake
- qmake qmc-example.pro "CONFIG += debug" "CONFIG -= app_bundle" "QMAKE_CC = $CC" "QMAKE_CXX = $CXX"
- make all
+# Run the qmake-compiled qmc-example under valgrind
- if [ "$QMC_TEST_USER" != "" ]; then $VALGRIND ./qmc-example "$QMC_TEST_USER" "$QMC_TEST_PWD" qmc-example-travis '#qmc-test:matrix.org' "Travis CI job $TRAVIS_JOB_NUMBER"; fi
notifications: