Travis: Make winpty failure not fail the build

This commit is contained in:
Abdullah Tahiri
2019-06-03 15:58:24 +02:00
committed by abdullahtahiriyo
parent 74281dc3e0
commit 0646cefebe

View File

@@ -283,9 +283,9 @@ script:
# run the tests
#cmd.exe /C 'cd C:\Users\travis\build\FreeCAD\FreeCAD\build\bin && FreeCADCmd.exe --run-test 0'
# Make build fail if ANY of the following fails
set -ev
#set -ev
winpty.exe -Xallow-non-tty -Xplain /C/Users/travis/build/FreeCAD/FreeCAD/build/bin/FreeCADCmd.exe --run-test 0 | tee runlog.txt
grep FAILED runlog.txt ; [ $? == 1 ] && echo "Build succeeded and tests passed!" || ( echo "Tests failed!" && false )
grep -q FAILED runlog.txt ; [ $? == 1 ] && echo "Build succeeded and tests passed!" || ( echo "Tests failed!" && false )
else
sudo make -j2 install
${INSTALLED_APP_PATH} --console --run-test 0