Skip to content

Commit

Permalink
infra: move wercker no-exception testing to diff.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
nrmancuso committed Apr 7, 2021
1 parent 53782d0 commit 0eabd9d
Showing 1 changed file with 56 additions and 32 deletions.
88 changes: 56 additions & 32 deletions sevntu-checks/.ci/wercker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,149 +21,171 @@ 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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-for-wercker.properties
sed -i'' 's/#apache-struts/apache-struts/' projects-for-wercker.properties
groovy ./launch.groovy --listOfProjects projects-for-wercker.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-for-wercker.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i'' 's/^guava/#guava/' projects-for-wercker.properties
sed -i'' 's/#guava/guava/' projects-for-wercker.properties
groovy ./launch.groovy --listOfProjects projects-for-wercker.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-for-wercker.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#hibernate-orm/hibernate-orm/' projects-to-test-on.properties
groovy ./launch.groovy --listOfProjects projects-for-wercker.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-for-wercker.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#spotbugs/spotbugs/' projects-to-test-on.properties
groovy ./launch.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#spring-framework/spring-framework/' projects-to-test-on.properties
groovy ./launch.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#Hbase/Hbase/' projects-to-test-on.properties
groovy ./launch.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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 https://github.com/checkstyle/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 ./launch.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false"
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)
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 https://github.com/checkstyle/contribution.git
checkout_from "-b issue-529 https://github.com/nmancus1/contribution.git"
cd .ci-temp/contribution/checkstyle-tester
sed -i.'' 's/^guava/#guava/' projects-to-test-on.properties
sed -i.'' 's/#RxJava/RxJava/' projects-to-test-on.properties
Expand All @@ -172,9 +194,11 @@ no-exception-alot-of-projects)
sed -i.'' 's/#apache-ant/apache-ant/' projects-to-test-on.properties
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 ./launch.groovy --listOfProjects projects-to-test-on.properties \
--config checks-sevntu-error.xml --checkstyleVersion ${CS_POM_VERSION} \
--sevntuVersion ${SEVNTU_POM_VERSION}
groovy ./diff.groovy --listOfProjects projects-to-test-on.properties \
--patchConfig checks-sevntu-error.xml --allowExcludes \
--mode single --patchBranch "$BRANCH" -r ../../..\
-xm "-Dcheckstyle.version=${CS_POM_VERSION} -Dsevntu-checkstyle.version=${SEVNTU_POM_VERSION} \
-Dcheckstyle.failsOnError=false "
cd ../../
rm -rf contribution
;;
Expand Down

0 comments on commit 0eabd9d

Please sign in to comment.