Skip to content

Commit

Permalink
Pull #14662: shallowClone in checkstyle-tester with SHA checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush kumar sadangi authored and nrmancuso committed May 26, 2024
1 parent c15242f commit 96eeed5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .ci/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ no-exception-struts)
sed -i'' 's/#apache-struts/apache-struts/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -883,6 +884,7 @@ no-exception-checkstyle-sevntu)
sed -i'' 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -900,6 +902,7 @@ no-exception-checkstyle-sevntu-javadoc)
sed -i'' 's/#sevntu-checkstyle/sevntu-checkstyle/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-only-javadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -916,6 +919,7 @@ no-exception-guava)
sed -i'' 's/#guava/guava/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -931,7 +935,8 @@ no-exception-hibernate-orm)
sed -i.'' 's/#hibernate-orm/hibernate-orm/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
;;
Expand All @@ -946,6 +951,7 @@ no-exception-spotbugs)
sed -i.'' 's/#spotbugs/spotbugs/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -961,6 +967,7 @@ no-exception-spoon)
sed -i.'' 's/#spoon/spoon/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -976,7 +983,8 @@ no-exception-spring-framework)
sed -i.'' 's/#spring-framework/spring-framework/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
;;
Expand All @@ -991,6 +999,7 @@ no-exception-hbase)
sed -i.'' 's/#Hbase/Hbase/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -1008,6 +1017,7 @@ no-exception-Pmd-elasticsearch-lombok-ast)
sed -i.'' 's/#lombok-ast/lombok-ast/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -1028,6 +1038,7 @@ no-exception-alot-of-projects)
sed -i.'' 's/#android-launcher/android-launcher/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-nonjavadoc-error.xml -p "$BRANCH" -r ../../.. \
--useShallowClone \
--allowExcludes --mode single -xm "-Dcheckstyle.failsOnError=false"
cd ../../
removeFolderWithProtectedFiles contribution
Expand All @@ -1044,6 +1055,7 @@ no-warning-imports-guava)
cd .ci-temp/contribution/checkstyle-tester
groovy ./diff.groovy --listOfProjects $PROJECTS --patchConfig $CONFIG \
--allowExcludes -p "$BRANCH" -r ../../.. \
--useShallowClone \
--mode single -xm "-Dcheckstyle.failsOnError=false"
RESULT=$(grep -A 5 "&#160;Warning</td>" $REPORT | cat)
cd ../../
Expand All @@ -1069,6 +1081,7 @@ no-warning-imports-java-design-patterns)
cd .ci-temp/contribution/checkstyle-tester
groovy ./diff.groovy --listOfProjects $PROJECTS --patchConfig $CONFIG \
--allowExcludes -p "$BRANCH" -r ../../..\
--useShallowClone \
--mode single
RESULT=$(grep -A 5 "&#160;Warning</td>" $REPORT | cat)
cd ../../
Expand Down

0 comments on commit 96eeed5

Please sign in to comment.