File: should-run-test

package info (click to toggle)
btrfs-progs 6.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,244 kB
  • sloc: ansic: 114,376; sh: 9,576; python: 1,242; makefile: 820
file content (24 lines) | stat: -rwxr-xr-x 352 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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