Skip to content

Commit

Permalink
infra: fails build if checkstyle versions don't match with eclipse-cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Nov 28, 2022
1 parent e0e2035 commit 4b6d3e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .ci/validation.sh
Expand Up @@ -15,12 +15,26 @@ eclipse-cs)
| sed "s/-SNAPSHOT//")
cd ../
cd sevntu-checks
SEVNTU_ECLIPSE_CS_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)
echo sevntus eclipse cs version:$SEVNTU_ECLIPSE_CS_VERSION
mvn -B -e clean install -Pno-validations
cd ..
checkout_from "https://github.com/checkstyle/eclipse-cs.git"
cd .ci-temp/eclipse-cs/
echo "Eclipse-cs tag: "$ECLIPSECS_TAG_NAME
git checkout $ECLIPSECS_TAG_NAME

ECLIPSE_CS_CS_VERSION=$(mvn -e -q -Dexec.executable='echo' \
-Dexec.args='${maven.sevntu.checkstyle.plugin.checkstyle.version}' \
--non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
echo eclipse cs cs version:$ECLIPSE_CS_CS_VERSION
if [[ $SEVNTU_ECLIPSE_CS_VERSION != $ECLIPSE_CS_CS_VERSION ]]; then
echo "Sevntu's CS version versus Eclipse-CS CS version does not match"
sleep 5
exit
fi
mvn -B -e install
cd ../../
cd eclipsecs-sevntu-plugin
Expand Down

0 comments on commit 4b6d3e6

Please sign in to comment.