From 0bc363e6b3760abc2c9a500b6de1f4d32889d9e7 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Tue, 17 Mar 2015 16:47:26 +0100 Subject: travis: run 'ldconfig' after 'sudo make install' In 327b1a48e2fe539c0ca5414ce9c98b2405536a09 we changed the installation prefix to /usr because we witnessed errors during unit tests using the python bindings. We initially thought that /usr/local/lib wasn't in the loader's default paths but it turns out it is. In fact, it only is the loader's cache that was outdated and needed to be regenerated. That's what ldconfig does. Signed-off-by: David Wagner --- .travis.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 4ec4a2c..1f0e1c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,18 +21,21 @@ install: # how to build script: - ( mkdir build && cd build && - cmake -DCMAKE_INSTALL_PREFIX=/usr .. && + cmake .. && make -j && sudo make install && + sudo ldconfig && CTEST_OUTPUT_ON_FAILURE=1 make test ) - ( cd skeleton-subsystem && - cmake -DCMAKE_INSTALL_PREFIX=/usr . && + cmake . && make && - sudo make install ) + sudo make install && + sudo ldconfig ) - ( cd build && - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. && + cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON .. && make -j && sudo make install && + sudo ldconfig && CTEST_OUTPUT_ON_FAILURE=1 make ExperimentalTest ExperimentalCoverage ExperimentalMemCheck ) notifications: -- cgit v1.1