Skip to content

Commit

Permalink
Travis winpty (#2214)
Browse files Browse the repository at this point in the history
* Travis: FreeCAD tests

invert bars in direct call

* Travis: Run FreeCADCmd through winpty

* Travis: stdin is not a tty

* Travis: winpty -Xallow-non-tty

* Travis: winpty -Xplain

* Travis: Force build failure on any error during testing

* Travis: Use grep/tee to determine failure

* Travis: Correct build output
  • Loading branch information
abdullahtahiriyo committed May 27, 2019
1 parent f0b10ec commit da4946d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -239,6 +239,7 @@ before_install:
curl -L https://github.com/frerich/clcache/releases/download/v4.2.0/clcache-4.2.0.zip --output clcache-4.2.0.zip
7z x clcache-4.2.0.zip > /dev/null
export PATH=$CLCACHE_PATH:$PATH
export PATH=$TEST_PATH:$PATH
#reset clcache hit stats
cmd.exe /C 'C:\Users\travis\build\FreeCAD\FreeCAD\clcache.exe -z'
# clcache stats before compilation
Expand Down Expand Up @@ -280,8 +281,11 @@ script:
# show clcache hit stats
cmd.exe /C 'C:\Users\travis\build\FreeCAD\FreeCAD\clcache.exe -s'
# run the tests
cmd.exe /C 'cd C:\Users\travis\build\FreeCAD\FreeCAD\build\bin && FreeCADCmd.exe --run-test 0'
cd $HOME
#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
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 )
else
sudo make -j2 install
${INSTALLED_APP_PATH} --console --run-test 0
Expand Down

0 comments on commit da4946d

Please sign in to comment.