Skip to content

Commit 96eeed5

Browse files
piyush kumar sadanginrmancuso
piyush kumar sadangi
authored andcommitted
Pull #14662: shallowClone in checkstyle-tester with SHA checkout
1 parent c15242f commit 96eeed5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.ci/validation.sh

+15-2
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ no-exception-struts)
865865
sed -i'' 's/#apache-struts/apache-struts/' projects-to-test-on.properties
866866
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
867867
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
868+
--useShallowClone \
868869
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
869870
cd ../../
870871
removeFolderWithProtectedFiles contribution
@@ -883,6 +884,7 @@ no-exception-checkstyle-sevntu)
883884
sed -i'' 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-to-test-on.properties
884885
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
885886
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
887+
--useShallowClone \
886888
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
887889
cd ../../
888890
removeFolderWithProtectedFiles contribution
@@ -900,6 +902,7 @@ no-exception-checkstyle-sevntu-javadoc)
900902
sed -i'' 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-to-test-on.properties
901903
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
902904
--patchConfig checks-only-javadoc-error.xml -p "$BRANCH" -r ../../.. \
905+
--useShallowClone \
903906
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
904907
cd ../../
905908
removeFolderWithProtectedFiles contribution
@@ -916,6 +919,7 @@ no-exception-guava)
916919
sed -i'' 's/#guava/guava/' projects-to-test-on.properties
917920
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
918921
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
922+
--useShallowClone \
919923
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
920924
cd ../../
921925
removeFolderWithProtectedFiles contribution
@@ -931,7 +935,8 @@ no-exception-hibernate-orm)
931935
sed -i.'' 's/#hibernate-orm/hibernate-orm/' projects-to-test-on.properties
932936
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
933937
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
934-
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
938+
--useShallowClone \
939+
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
935940
cd ../../
936941
removeFolderWithProtectedFiles contribution
937942
;;
@@ -946,6 +951,7 @@ no-exception-spotbugs)
946951
sed -i.'' 's/#spotbugs/spotbugs/' projects-to-test-on.properties
947952
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
948953
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
954+
--useShallowClone \
949955
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
950956
cd ../../
951957
removeFolderWithProtectedFiles contribution
@@ -961,6 +967,7 @@ no-exception-spoon)
961967
sed -i.'' 's/#spoon/spoon/' projects-to-test-on.properties
962968
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
963969
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
970+
--useShallowClone \
964971
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
965972
cd ../../
966973
removeFolderWithProtectedFiles contribution
@@ -976,7 +983,8 @@ no-exception-spring-framework)
976983
sed -i.'' 's/#spring-framework/spring-framework/' projects-to-test-on.properties
977984
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
978985
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
979-
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
986+
--useShallowClone \
987+
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
980988
cd ../../
981989
removeFolderWithProtectedFiles contribution
982990
;;
@@ -991,6 +999,7 @@ no-exception-hbase)
991999
sed -i.'' 's/#Hbase/Hbase/' projects-to-test-on.properties
9921000
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
9931001
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
1002+
--useShallowClone \
9941003
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
9951004
cd ../../
9961005
removeFolderWithProtectedFiles contribution
@@ -1008,6 +1017,7 @@ no-exception-Pmd-elasticsearch-lombok-ast)
10081017
sed -i.'' 's/#lombok-ast/lombok-ast/' projects-to-test-on.properties
10091018
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
10101019
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
1020+
--useShallowClone \
10111021
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
10121022
cd ../../
10131023
removeFolderWithProtectedFiles contribution
@@ -1028,6 +1038,7 @@ no-exception-alot-of-projects)
10281038
sed -i.'' 's/#android-launcher/android-launcher/' projects-to-test-on.properties
10291039
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
10301040
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
1041+
--useShallowClone \
10311042
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
10321043
cd ../../
10331044
removeFolderWithProtectedFiles contribution
@@ -1044,6 +1055,7 @@ no-warning-imports-guava)
10441055
cd .ci-temp/contribution/checkstyle-tester
10451056
groovy ./diff.groovy --listOfProjects $PROJECTS --patchConfig $CONFIG \
10461057
--allowExcludes -p "$BRANCH" -r ../../.. \
1058+
--useShallowClone \
10471059
--mode single -xm "-Dcheckstyle.failsOnError=false"
10481060
RESULT=$(grep -A 5 "&#160;Warning</td>" $REPORT | cat)
10491061
cd ../../
@@ -1069,6 +1081,7 @@ no-warning-imports-java-design-patterns)
10691081
cd .ci-temp/contribution/checkstyle-tester
10701082
groovy ./diff.groovy --listOfProjects $PROJECTS --patchConfig $CONFIG \
10711083
--allowExcludes -p "$BRANCH" -r ../../..\
1084+
--useShallowClone \
10721085
--mode single
10731086
RESULT=$(grep -A 5 "&#160;Warning</td>" $REPORT | cat)
10741087
cd ../../

0 commit comments

Comments
 (0)