Skip to content

Commit

Permalink
Push messages properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ananace committed Jun 25, 2015
1 parent 9b09c7b commit b93cba9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CI/before_script.msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ run_cmd() {
if [ $RET -ne 0 ]; then
if [ -z $APPVEYOR ]; then
echo "Command $CMD failed, output can be found in `real_pwd`/output.log"
exit $RET
else
7z a output.7z output.log > /dev/null 2>&1

appveyor PushArtifact output.7z -FileName $CMD-output.7z
appveyor AddMessage "Command $CMD failed (code $RET), output has been pushed as an artifact." -Category Error
appveyor AddMessage "Command $CMD failed." -Category Error -Details "$CMD $@"
while read in; do appveyor AddMessage "$in" -Category Error; done < output.log
fi
else
rm output.log
Expand Down

0 comments on commit b93cba9

Please sign in to comment.