2019-04-20 02:20:02 +06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-11-05 06:18:57 +06:00
|
|
|
source util/travis_utils.sh
|
2019-10-14 22:57:53 +06:00
|
|
|
|
2019-04-20 02:20:02 +06:00
|
|
|
if [[ "$TRAVIS_COMMIT_MESSAGE" == *"[skip test]"* ]]; then
|
|
|
|
echo "Skipping due to commit message"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2019-10-14 22:57:53 +06:00
|
|
|
exit_code=0
|
|
|
|
|
2019-11-05 06:18:57 +06:00
|
|
|
if [ "$LOCAL_BRANCH" == "master" ] || [ "$NUM_CORE_CHANGES" != "0" ]; then
|
2019-10-14 22:57:53 +06:00
|
|
|
echo "Running tests."
|
|
|
|
make test:all
|
|
|
|
: $((exit_code = $exit_code + $?))
|
|
|
|
|
2019-04-20 02:20:02 +06:00
|
|
|
fi
|
|
|
|
|
2019-10-14 22:57:53 +06:00
|
|
|
exit $exit_code
|