CMake: test installation with Travis CI

With wx-config working, test installing and building the minimal sample
with Travis CI.

Closes https://github.com/wxWidgets/wxWidgets/pull/1172
This commit is contained in:
Maarten Bent
2019-01-24 00:07:45 +01:00
committed by Vadim Zeitlin
parent b0660cc87c
commit 42c602bddf

View File

@@ -32,6 +32,10 @@ case $wxTOOLSET in
ctest -V -C Debug -R "test_base" --output-on-failure --interactive-debug-mode 0 .
echo 'travis_fold:end:testing'
fi
echo 'Installing...' && echo -en 'travis_fold:start:script.install\\r'
sudo env "PATH=$PATH" cmake --build . --target install
echo -en 'travis_fold:end:script.install\\r'
popd
;;
*)
echo 'Configuring...' && echo -en 'travis_fold:start:script.configure\\r'
@@ -52,9 +56,10 @@ case $wxTOOLSET in
echo 'Installing...' && echo -en 'travis_fold:start:script.install\\r'
sudo make install
echo -en 'travis_fold:end:script.install\\r'
echo 'Testing installation...' && echo -en 'travis_fold:start:script.testinstall\\r'
make -C samples/minimal -f makefile.unx clean
make -C samples/minimal -f makefile.unx $wxMAKEFILE_FLAGS
echo -en 'travis_fold:end:script.testinstall\\r'
;;
esac
echo 'Testing installation...' && echo -en 'travis_fold:start:script.testinstall\\r'
make -C samples/minimal -f makefile.unx clean
make -C samples/minimal -f makefile.unx $wxMAKEFILE_FLAGS
echo -en 'travis_fold:end:script.testinstall\\r'