@@ -34,9 +34,11 @@ patch-diff-report-tool)
34
34
checkstyle-tester-launch-groovy)
35
35
checkout_from https://github.com/checkstyle/checkstyle
36
36
cd .ci-temp/checkstyle
37
+ LOCAL_GIT_REPO=$( pwd)
37
38
mvn --batch-mode clean install -Passembly
38
39
cd ../../checkstyle-tester
39
- groovy launch.groovy -l projects-for-travis.properties -c my_check.xml -i
40
+ groovy diff.groovy -r " $LOCAL_GIT_REPO " -l projects-for-travis.properties --patchConfig my_check.xml \
41
+ --patchBranch master --mode single --allowExcludes
40
42
;;
41
43
42
44
checkstyle-tester-diff-groovy-patch)
@@ -69,6 +71,69 @@ checkstyle-tester-diff-groovy-patch-only)
69
71
-pc my_check.xml -p patch-branch -r ../.ci-temp/checkstyle -m single
70
72
;;
71
73
74
+ checkstyle-tester-diff-groovy-regression-single)
75
+ # Check out lateset checkstyle from master
76
+ checkout_from https://github.com/checkstyle/checkstyle
77
+
78
+ # Run report from master branch of contribution
79
+ checkout_from https://github.com/checkstyle/contribution
80
+ cd .ci-temp/contribution/checkstyle-tester
81
+ sed -i' ' ' s/^guava/#guava/' projects-to-test-on.properties
82
+ sed -i' ' ' s/#checkstyle|/checkstyle|/' projects-to-test-on.properties
83
+ export MAVEN_OPTS=" -Xmx2048m"
84
+ groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
85
+ -pc ../../../checkstyle-tester/diff-groovy-regression-config.xml \
86
+ -r ../../checkstyle \
87
+ -m single -p master
88
+
89
+ # Run report with current branch
90
+ cd ../../../checkstyle-tester/
91
+ sed -i' ' ' s/^guava/#guava/' projects-to-test-on.properties
92
+ sed -i' ' ' s/#checkstyle|/checkstyle|/' projects-to-test-on.properties
93
+ rm -rf reports repositories
94
+ groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
95
+ -pc diff-groovy-regression-config.xml -r ../.ci-temp/checkstyle/ \
96
+ -m single -p master
97
+
98
+ cd ..
99
+ # We need to ignore file paths below, since they will be different between reports
100
+ diff -I " contribution" checkstyle-tester/reports/diff/checkstyle/index.html \
101
+ .ci-temp/contribution/checkstyle-tester/reports/diff/checkstyle/index.html
102
+ ;;
103
+
104
+ checkstyle-tester-diff-groovy-regression)
105
+ # Check out latest checkstyle from master
106
+ checkout_from https://github.com/checkstyle/checkstyle
107
+ cd .ci-temp/checkstyle
108
+ MASTER_BRANCH_SHA=$( git log -n 1 --pretty=format:" %H" )
109
+ cd ../..
110
+
111
+ # Run report from master branch of contribution
112
+ checkout_from https://github.com/checkstyle/contribution
113
+ cd .ci-temp/contribution/checkstyle-tester
114
+ sed -i' ' ' s/^guava/#guava/' projects-to-test-on.properties
115
+ sed -i' ' ' s/#checkstyle|/checkstyle|/' projects-to-test-on.properties
116
+ export MAVEN_OPTS=" -Xmx2048m"
117
+ groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
118
+ -c ../../../checkstyle-tester/diff-groovy-regression-config.xml \
119
+ -r ../../checkstyle \
120
+ -b " $MASTER_BRANCH_SHA " -p 7190c47ca5515ad8cb827bc4065ae7664d2766c1
121
+
122
+ # Run report with current branch
123
+ cd ../../../checkstyle-tester/
124
+ sed -i' ' ' s/^guava/#guava/' projects-to-test-on.properties
125
+ sed -i' ' ' s/#checkstyle|/checkstyle|/' projects-to-test-on.properties
126
+ rm -rf reports repositories
127
+ groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
128
+ -c diff-groovy-regression-config.xml -r ../.ci-temp/checkstyle/ \
129
+ -b " $MASTER_BRANCH_SHA " -p 7190c47ca5515ad8cb827bc4065ae7664d2766c1
130
+
131
+ cd ..
132
+ # We need to ignore file paths below, since they will be different between reports
133
+ diff -I " contribution" checkstyle-tester/reports/diff/checkstyle/index.html \
134
+ .ci-temp/contribution/checkstyle-tester/reports/diff/checkstyle/index.html
135
+ ;;
136
+
72
137
codenarc)
73
138
cd checkstyle-tester
74
139
./codenarc.sh . diff.groovy > diff.log && cat diff.log && grep ' (p1=0; p2=0; p3=0)' diff.log
0 commit comments