btrfs-progs: Let function find_device to be consistent with kernel
[platform/upstream/btrfs-progs.git] / travis / should-run-test
1 #!/bin/sh
2
3 if [ -z "$TRAVIS_BRANCH" ] ; then
4         # no branch? run anyway
5         exit 0
6 fi
7
8 # no tests
9 if [ "$TRAVIS_BRANCH" = 'coverity_scan' ]; then
10         exit 1
11 fi
12
13 # quick tests
14 if [ "$TRAVIS_BRANCH" = 'devel' -o "$TRAVIS_BRANCH" = 'master' ]; then
15         exit 0
16 fi
17
18 # all tests
19 if [ "$TRAVIS_BRANCH" = 'release-test' ]; then
20         exit 0
21 fi
22
23 # branch not recognized
24 exit 1