Update Travis testing script to work for non-GUI builds too
Skip parts that don't work in this case.
This commit is contained in:
@@ -69,7 +69,7 @@ case $wxTOOLSET in
|
||||
echo -en 'travis_fold:end:script.build\\r'
|
||||
|
||||
echo 'Building tests...' && echo -en 'travis_fold:start:script.tests\\r'
|
||||
make -C tests $wxJOBS failtest
|
||||
[ "$wxSKIP_GUI" = 1 ] || make -C tests $wxJOBS failtest
|
||||
make -C tests $wxJOBS
|
||||
echo -en 'travis_fold:end:script.tests\\r'
|
||||
|
||||
@@ -77,6 +77,11 @@ case $wxTOOLSET in
|
||||
pushd tests && ./test && popd
|
||||
echo -en 'travis_fold:end:script.testing\\r'
|
||||
|
||||
if [ "$wxSKIP_GUI" = 1 ]; then
|
||||
echo 'Skipping the rest of tests for non-GUI build.'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$wxUSE_XVFB" = 1 ]; then
|
||||
echo 'Testing GUI using Xvfb...' && echo -en 'travis_fold:start:script.testing_gui\\r'
|
||||
pushd tests && xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui && popd
|
||||
|
Reference in New Issue
Block a user