Browse Source

修改travis-ci

pull/507/head
zhuangjiaju 5 years ago
parent
commit
4829b1df53
  1. 3
      .travis.yml
  2. 18
      pom.xml

3
.travis.yml

@ -6,8 +6,7 @@ cache:
before_install:
- chmod +x mvnw
install:
- ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -B -V
- ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -Dpmd.skip=true -B -V
script:
- ./mvnw pmd:check -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip -B -V
- ./mvnw install -Dgpg.skip -B -V

18
pom.xml

@ -113,6 +113,24 @@
<ruleset>rulesets/java/ali-set.xml</ruleset>
</rulesets>
</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>
<dependency>
<groupId>com.alibaba.p3c</groupId>

Loading…
Cancel
Save