btrfs-progs/ci/should-run-test
David Sterba 06f075976e btrfs-progs: ci: rename travis/ to ci/
Rename the directory for continuous integration scripts to a more
generic name as we're going to use more than one. The base image on
travis has an old kernel. It's not possible to use a newer one and some
tests fail making the coverage unreliable.

Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-04 02:06:34 +02:00

24 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