Skip to content

Commit faa6af5

Browse files
committed
Also skip pmd run in build
1 parent b291083 commit faa6af5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/pmdtester/builders/pmd_report_builder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def build_pmd(into_dir:)
6868
' -Dmaven.javadoc.skip=true' \
6969
' -Dmaven.source.skip=true' \
7070
' -Dcheckstyle.skip=true' \
71+
' -Dpmd.skip=true' \
7172
' -T1C'
7273
Cmd.execute(package_cmd)
7374
end

test/test_pmd_report_builder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def test_build_normal
7272
# PMD binary does not exist yet this time...
7373
record_expectations('sha1abc', 'sha1abc', false)
7474
PmdTester::Cmd.stubs(:execute).with('./mvnw clean package -Dmaven.test.skip=true' \
75-
' -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Dcheckstyle.skip=true -T1C').once
75+
' -Dmaven.javadoc.skip=true -Dmaven.source.skip=true' \
76+
' -Dcheckstyle.skip=true -Dpmd.skip=true -T1C').once
7677
PmdTester::Cmd.stubs(:execute).with("unzip -qo pmd-dist/target/pmd-bin-#{@pmd_version}.zip" \
7778
' -d pmd-dist/target/exploded').once
7879
PmdTester::Cmd.stubs(:execute).with("mv pmd-dist/target/exploded/pmd-bin-#{@pmd_version}" \

0 commit comments

Comments
 (0)