-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathsmoke.sh
executable file
·64 lines (55 loc) · 1.46 KB
/
smoke.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
function smokeTestProfiles() {
echo "smokeTestProfiles"
TEST_CATEGORY=$1
PROFILES=$2
for i in $PROFILES
do
echo "===================================="
LOGFILE="log/smoke-$TEST_CATEGORY-$i.log"
echo "------------------------------------"
echo $TEST_CATEGORY
echo $i
echo "------------------------------------"
echo $LOGFILE
./mvnw -e -P$i -DskipTests=true clean install dependency:sources dependency:resolve dependency:resolve-plugins > $LOGFILE
echo "------------------------------------"
cat $LOGFILE | grep -v "INFO"
echo "------------------------------------"
cat $LOGFILE | grep "BUILD SUCCESS"
echo "------------------------------------"
echo $LOGFILE
echo "------------------------------------"
done
}
function smokeTestAll() {
smokeTestProfiles "ALL" "default wildfly-managed wildfly-remote glassfish-managed glassfish-remote"
}
function smokeTestRegression() {
smokeTestProfiles "Regression" "default"
}
function smokeTestWorkInProgress() {
smokeTestProfiles "WorkInProgress" "default wildfly-managed glassfish-managed"
}
function smokeTestsAdHoc() {
echo "smokeTestsAdHoc"
#./mvnw -Psetup
#./mvnw -Pqa
#./mvnw clean install | grep -v "INFO"
#./mvnw -Pwlp-run clean install | grep -v "INFO"
#./mvnw -Pwf-run clean install | grep -v "INFO"
}
function smoke() {
#smokeTestRegression
smokeTestWorkInProgress
}
function run() {
./mvnw
}
function main() {
smokeTestAll
smoke
#run
#smokeTestsAdHoc
}
main