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 a73c088
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 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
1 change: 1 addition & 0 deletions .ci/error-prone-check.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import groovy.transform.EqualsAndHashCode
import groovy.transform.Field
import groovy.transform.Immutable
import groovy.xml.XmlUtil
import groovy.xml.XmlUtil

import java.util.regex.Matcher
import java.util.regex.Pattern
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/codenarc-analysis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .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,13 +44,26 @@ 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"
- CMD1="export PULL_REQUEST=$TRAVIS_PULL_REQUEST"
- CMD2="./.ci/validation.sh verify-no-exception-configs"
- CMD="$CMD1 && $CMD2"

before_script:
- |
if [[ $TRAVIS_CPU_ARCH == 'ppc64le' ]]; then
export JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-ppc64el
export PATH=$JAVA_HOME/bin:$PATH
fi
- groovy --version

script:
# manually set JAVA_HOME to overcome issue with travis ci noted at
# https://github.com/checkstyle/checkstyle/pull/11699#issue-1261272652
Expand Down

0 comments on commit a73c088

Please sign in to comment.