btrfs-progs/travis/should-run-test
David Sterba 5a69c58be6 btrfs-progs: build: move travis helper script to own directory
We're going to add move build check integration scripts and
configuration, so put everything under travis/ now.

Signed-off-by: David Sterba <dsterba@suse.com>
2017-10-13 20:15:50 +02:00

25 lines
352 B
Bash
Executable File

#!/bin/sh
if [ -z "$TRAVIS_BRANCH" ] ; then
# no branch? run anyway
exit 0
fi
# no tests
if [ "$TRAVIS_BRANCH" = 'coverity_scan' ]; then
exit 1
fi
# quick tests
if [ "$TRAVIS_BRANCH" = 'devel' -o "$TRAVIS_BRANCH" = 'master' ]; then
exit 0
fi
# all tests
if [ "$TRAVIS_BRANCH" = 'release-test' ]; then
exit 0
fi
# branch not recognized
exit 1