forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis-script.sh
More file actions
executable file
·24 lines (20 loc) · 896 Bytes
/
travis-script.sh
File metadata and controls
executable file
·24 lines (20 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -ex
IS_COVERITY_SCAN_BRANCH=`ruby -e "puts '${TRAVIS_BRANCH}' =~ /\\A$COVERITY_SCAN_BRANCH_PATTERN\\z/ ? 1 : 0"`
if [ "${FAST_BUILD}" == "true" ]; then
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$COVERITY" == "true" ] && [ "$IS_COVERITY_SCAN_BRANCH" = "1" ]; then
export COVERITY_SCAN_BUILD_COMMAND="mvn package"
#curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash
./.travis/travisci_build_coverity_scan.sh
else
mvn package
fi
else
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$COVERITY" == "true" ] && [ "$IS_COVERITY_SCAN_BRANCH" = "1" ]; then
export COVERITY_SCAN_BUILD_COMMAND="mvn verify"
#curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash
./.travis/travisci_build_coverity_scan.sh
else
mvn verify
fi
fi