Skip to content

Commit

Permalink
ci: if script fails, report error
Browse files Browse the repository at this point in the history
Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and Anas Nashif committed Jun 20, 2017
1 parent 83edd61 commit 3d5b4ef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ build:
echo "Building a Pull Request";
echo "- Building Documentation";
echo "Commit range:" ${COMMIT_RANGE}
sudo pip install sphinx==1.5.5
make htmldocs > doc.log 2>&1;
./scripts/filter-known-issues.py --config-dir .known-issues/doc/ doc.log > doc.warnings;
python2 ./scripts/filter-known-issues.py --config-dir .known-issues/doc/ doc.log > doc.warnings;
if [ "$?" != 0 ]; then
echo " ==> Error running filter script"
exit 1
fi;
if [ -s doc.warnings ]; then
echo " => New documentation warnings/errors";
fi;
Expand Down

0 comments on commit 3d5b4ef

Please sign in to comment.