Skip to content

Commit

Permalink
infra: update to single mode (will be squashed)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrmancuso committed Apr 3, 2021
1 parent 0874986 commit e92c7e0
Showing 1 changed file with 33 additions and 17 deletions.
50 changes: 33 additions & 17 deletions sevntu-checks/.ci/wercker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function checkout_from {
case $1 in

no-exception-struts)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -33,13 +34,15 @@ no-exception-struts)
sed -i'' 's/^guava/#guava/' projects-for-wercker.properties
sed -i'' 's/#apache-struts/apache-struts/' projects-for-wercker.properties
groovy ./diff.groovy --listOfProjects projects-for-wercker.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-guava)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -52,13 +55,15 @@ no-exception-guava)
sed -i'' 's/^guava/#guava/' projects-for-wercker.properties
sed -i'' 's/#guava/guava/' projects-for-wercker.properties
groovy ./diff.groovy --listOfProjects projects-for-wercker.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-hibernate-orm)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -71,13 +76,15 @@ no-exception-hibernate-orm)
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#hibernate-orm/hibernate-orm/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-for-wercker.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-spotbugs)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -90,13 +97,15 @@ no-exception-spotbugs)
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#spotbugs/spotbugs/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-spring-framework)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -109,13 +118,15 @@ no-exception-spring-framework)
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#spring-framework/spring-framework/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-hbase)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -128,34 +139,38 @@ no-exception-hbase)
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#Hbase/Hbase/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-Pmd-elasticsearch-lombok-ast)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
SEVNTU_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' -Dexec.args='${project.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo CS_version: ${CS_POM_VERSION}
echo SEVNTU_version: ${SEVNTU_POM_VERSION}
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git "
checkout_from "-b issue-529 https://github.com/nmancus1/contribution"
cd .ci-temp/contribution/checkstyle-tester
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#pmd/pmd/' projects-to-test-on.properties
sed -i.'' 's/#elasticsearch/elasticsearch/' projects-to-test-on.properties
sed -i.'' 's/#lombok-ast/lombok-ast/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;

no-exception-alot-of-projects)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
CS_POM_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${checkstyle.eclipse-cs.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
Expand All @@ -173,8 +188,9 @@ no-exception-alot-of-projects)
sed -i.'' 's/#apache-jsecurity/apache-jsecurity/' projects-to-test-on.properties
sed -i.'' 's/#android-launcher/android-launcher/' projects-to-test-on.properties
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes
--patchConfig checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION} --allowExcludes \
--mode single --patchBranch "$BRANCH"
cd ../../
rm -rf contribution
;;
Expand Down

0 comments on commit e92c7e0

Please sign in to comment.