Skip to content

Commit

Permalink
config: add regression on checkstyle-samples ant
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach authored and nrmancuso committed Dec 21, 2022
1 parent c58196d commit d3a5f9a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .ci/no-exception-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,23 @@ no-exception-only-javadoc)
removeFolderWithProtectedFiles contribution
;;

no-exception-samples-ant)
CS_POM_VERSION="$(getCheckstylePomVersion)"
echo 'CS_POM_VERSION='"${CS_POM_VERSION}"
mvn -e --no-transfer-progress -B install -Pno-validations
checkout_from https://github.com/sevntu-checkstyle/checkstyle-samples
cd .ci-temp/checkstyle-samples/ant-project

sed -i -e "/<dependencies>/,/<\/dependencies>/ "`
`"s|name=\"checkstyle\" rev=\".*\""`
`"|name=\"checkstyle\" rev=\"$CS_POM_VERSION\"|g" ivy.xml

ant checkstyle

cd ../..
removeFolderWithProtectedFiles checkstyle-samples
;;


*)
echo "Unexpected argument: $1"
Expand Down
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ language: java
cache:
directories:
- ~/.m2
- ~/.ivy2

branches:
only:
Expand All @@ -16,7 +17,7 @@ before_install:
- sudo apt update

install:
- sudo apt install -y groovy xsltproc xmlstarlet
- sudo apt install -y groovy xsltproc xmlstarlet ant
- ./.ci/travis.sh install-adoptium-jdk
- ./.ci/travis.sh install-custom-mvn

Expand Down Expand Up @@ -54,6 +55,11 @@ jobs:
- DESC="codenarc analysis"
- CMD="./.ci/codenarc.sh"

- jdk: openjdk11
env:
- DESC="no-exception-samples-ant"
- CMD="./.ci/no-exception-test.sh no-exception-samples-ant"

# Ensure that all modules are used in no exception configs
- env:
- DESC="ensure that all modules are used in no exception configs"
Expand Down

0 comments on commit d3a5f9a

Please sign in to comment.