File tree 2 files changed +24
-4
lines changed
2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # Treat unset variables and parameters as an error when performing parameter expansion
4
+ set -o nounset
5
+
6
+ # Exit immediately if command returns a non-zero status
7
+ set -e errexit
8
+
9
+ # Return value of a pipeline is the value of the last command to exit with a non-zero status
10
+ set -o pipefail
11
+
12
+
3
13
RUN_ONLY_INTEGRATION_TESTS=no
4
- if [ " $1 " = ' --only-integration-tests' ]; then
14
+ if [ " ${1 :- } " = ' --only-integration-tests' ]; then
5
15
RUN_ONLY_INTEGRATION_TESTS=yes
6
16
fi
7
17
64
74
65
75
mvn --batch-mode verify -Denforcer.skip=true -DskipUnitTests=true > verify-raw.log 2>&1 || VERIFY_FAIL=yes
66
76
67
- if [ " $SPRING_PROFILES_ACTIVE " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
77
+ if [ " ${ SPRING_PROFILES_ACTIVE:- } " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
68
78
danger > danger.log 2>&1 || DANGER_FAIL=yes
69
79
fi
70
80
92
102
93
103
print_status " $VERIFY_FAIL " ' Run integration tests'
94
104
95
- if [ " $SPRING_PROFILES_ACTIVE " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
105
+ if [ " ${ SPRING_PROFILES_ACTIVE:- } " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
96
106
print_status " $DANGER_FAIL " ' Run danger'
97
107
fi
98
108
115
125
116
126
print_log verify.log ' Run integration tests'
117
127
118
- if [ " $SPRING_PROFILES_ACTIVE " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
128
+ if [ " ${ SPRING_PROFILES_ACTIVE:- } " = ' travis' -a " ${TRAVIS_PULL_REQUEST:- } " != ' false' ]; then
119
129
print_log danger.log ' Run danger'
120
130
fi
121
131
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # Treat unset variables and parameters as an error when performing parameter expansion
4
+ set -o nounset
5
+
6
+ # Exit immediately if command returns a non-zero status
7
+ set -e errexit
8
+
9
+ # Return value of a pipeline is the value of the last command to exit with a non-zero status
10
+ set -o pipefail
11
+
12
+
3
13
. " $( dirname " $0 " ) /common.sh"
4
14
5
15
JACOCO_FAIL=
You can’t perform that action at this time.
0 commit comments