travis: fix verification for calling waf check

The use of `[[ $t == linux ]] && $waf check` makes the script exit with
non-zero status when $t isn't linux *and* that's the last thing executed.
This commit is contained in:
Gustavo Jose de Sousa 2016-01-19 11:02:10 -02:00 committed by Lucas De Marchi
parent bc5210d6f2
commit 6ca58eac78
1 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@ for t in $TRAVIS_BUILD_TARGET; do
$waf configure --board $t
$waf clean
$waf ${build_concurrency[$t]} build
[[ $t == linux ]] && $waf check
if [[ $t == linux ]]; then
$waf check
fi
fi
done