Skip to content

Commit

Permalink
Issue checkstyle#11747: Migrate codenarc to travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyom-Yadav committed Oct 28, 2022
1 parent 6704023 commit 1854d18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion .ci/codenarc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
# Attention, there is no "-x" to avoid problems on Travis
set -e

CODENARC_REPORT=$(groovy ./.ci/codenarc.groovy ./.ci/ *.groovy)
CLEAN_CODENARC_REPORT="(p1=0; p2=0; p3=0)"
Expand Down
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cache:
addons:
apt:
packages:
- groovy
- xsltproc
- xmlstarlet

Expand Down Expand Up @@ -43,6 +44,11 @@ jobs:
- USE_MAVEN_REPO="true"
- CMD="./.ci/travis.sh jacoco"

- jdk: openjdk11
env:
- DESC="codenarc analysis"
- CMD="./.ci/codenarc.sh"

# Ensure that all modules are used in no exception configs
- env:
- DESC="ensure that all modules are used in no exception configs"
Expand All @@ -53,11 +59,13 @@ jobs:
script:
# manually set JAVA_HOME to overcome issue with travis ci noted at
# https://github.com/checkstyle/checkstyle/pull/11699#issue-1261272652
# - JAVA_HOME='/usr/lib/jvm/adoptopenjdk-11-hotspot-ppc64el'
- JAVA_HOME='/usr/lib/jvm/adoptopenjdk-11-hotspot-ppc64el'
- groovy --version
- ./.ci/travis.sh init-m2-repo
- ./.ci/travis.sh run-command "$CMD"
# - ./.ci/travis.sh remove-custom-mvn
# - ./.ci/travis.sh remove-adoptium-jdk
- ./.ci/codenarc.sh
- ./.ci/validation.sh git-diff
- ./.ci/travis.sh ci-temp-check

Expand Down

0 comments on commit 1854d18

Please sign in to comment.