Skip to content
Permalink
Browse files

travis: do not skip build steps if previous steps fail

  • Loading branch information...
mroethke authored and smlng committed Mar 13, 2019
1 parent 72c3210 commit 6c30a532c96bc24c2c9fb9be337d7bacf86628de
Showing with 5 additions and 2 deletions.
  1. +5 −2 scripts/travis.sh
@@ -1,17 +1,18 @@
#!/usr/bin/env bash

set -e

RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color

BUILDSTEP_FAILED=0

function run_command {
eval $@

ret=$?
if [ $ret != 0 ]; then
colour=$RED
BUILDSTEP_FAILED=1
else
colour=$GREEN
fi
@@ -42,3 +43,5 @@ run_command make
run_command make test
run_command make gcov
run_command scripts/check-exports.sh

exit $BUILDSTEP_FAILED

0 comments on commit 6c30a53

Please sign in to comment.
You can’t perform that action at this time.