Run ctest in correct directory on Travis CI

This commit is contained in:
Maarten Bent
2021-01-16 01:34:10 +01:00
parent 6dfb96c075
commit b51d146adf

View File

@@ -39,7 +39,6 @@ case $wxTOOLSET in
if [ "$wxCMAKE_GENERATOR" == "Xcode" ]; then echo -n 'Building and '; fi if [ "$wxCMAKE_GENERATOR" == "Xcode" ]; then echo -n 'Building and '; fi
echo 'Installing...' echo 'Installing...'
sudo env "PATH=$PATH" cmake --build . --target install -- $wxBUILD_ARGS sudo env "PATH=$PATH" cmake --build . --target install -- $wxBUILD_ARGS
popd
echo 'travis_fold:end:install' echo 'travis_fold:end:install'
if [ "$wxCMAKE_TESTS" != "OFF" ]; then if [ "$wxCMAKE_TESTS" != "OFF" ]; then
@@ -51,6 +50,7 @@ case $wxTOOLSET in
echo 'travis_fold:start:testinstall' echo 'travis_fold:start:testinstall'
echo 'Testing installation...' echo 'Testing installation...'
popd
mkdir build_cmake_install_test mkdir build_cmake_install_test
pushd build_cmake_install_test pushd build_cmake_install_test
cmake -G "$wxCMAKE_GENERATOR" $wxCMAKE_DEFINES ../samples/minimal cmake -G "$wxCMAKE_GENERATOR" $wxCMAKE_DEFINES ../samples/minimal