Skip to content

Commit 8287a36

Browse files
committed
.travis.yml: enable checking by pmd/checkstyle/license plugins and failing the build when there is any warnings/errors.
1 parent 12c7aeb commit 8287a36

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
language: java
2-
script: mvn verify jasmine:test
2+
script:
3+
- mvn checkstyle:check -Dcheckstyle.violationSeverity=warning
4+
- mvn pmd:check
5+
- mvn license:check
6+
- mvn verify
7+
- mvn jasmine:test
38
after_success: mvn jacoco:prepare-agent test jacoco:report coveralls:jacoco
49

510
jdk:

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,6 @@
730730
<consoleOutput>true</consoleOutput>
731731
<includeTestSourceDirectory>true</includeTestSourceDirectory>
732732
<linkXRef>false</linkXRef>
733-
<failOnViolation>false</failOnViolation>
734733
<configLocation>
735734
${basedir}/src/main/config/checkstyle.xml
736735
</configLocation>
@@ -746,7 +745,6 @@
746745
<version>${pmd.plugin.version}</version>
747746
<configuration>
748747
<linkXRef>false</linkXRef>
749-
<failOnViolation>false</failOnViolation>
750748
<verbose>true</verbose>
751749
<targetJdk>${java.version}</targetJdk>
752750
<rulesets>

0 commit comments

Comments
 (0)