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:
committed by
Vadim Zeitlin
parent
b0660cc87c
commit
42c602bddf
@@ -32,6 +32,10 @@ case $wxTOOLSET in
|
|||||||
ctest -V -C Debug -R "test_base" --output-on-failure --interactive-debug-mode 0 .
|
ctest -V -C Debug -R "test_base" --output-on-failure --interactive-debug-mode 0 .
|
||||||
echo 'travis_fold:end:testing'
|
echo 'travis_fold:end:testing'
|
||||||
fi
|
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'
|
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'
|
echo 'Installing...' && echo -en 'travis_fold:start:script.install\\r'
|
||||||
sudo make install
|
sudo make install
|
||||||
echo -en 'travis_fold:end:script.install\\r'
|
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
|
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'
|
||||||
|
Reference in New Issue
Block a user