Browse Source

修改travis-ci

bugfix
zhuangjiaju 5 years ago
parent
commit
39401dd6a8
  1. 6
      .travis.yml
  2. 18
      pom.xml

6
.travis.yml

@ -2,4 +2,8 @@ language: java
jdk: oraclejdk8 jdk: oraclejdk8
before_install: before_install:
- chmod +x mvnw - chmod +x mvnw
script: "./mvnw install -B -V" script:
- "./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V"
- "./mvnw pmd:check -DskipTests=true -Dmaven.javadoc.skip=true -B -V"
- "./mvnw install -B -V"

18
pom.xml

@ -113,24 +113,6 @@
<ruleset>rulesets/java/ali-set.xml</ruleset> <ruleset>rulesets/java/ali-set.xml</ruleset>
</rulesets> </rulesets>
</configuration> </configuration>
<executions>
<!-- 绑定pmd:check到verify生命周期 -->
<execution>
<id>pmd-check-verify</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
<!-- 绑定pmd:pmd到site生命周期 -->
<execution>
<id>pmd-pmd-site</id>
<phase>site</phase>
<goals>
<goal>pmd</goal>
</goals>
</execution>
</executions>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.alibaba.p3c</groupId> <groupId>com.alibaba.p3c</groupId>

Loading…
Cancel
Save