Skip to content

Commit

Permalink
提交CI集成控制
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmanpushcart committed Nov 7, 2018
1 parent 36943f9 commit 42f7b26
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: generic

jdk:
- openjdk7
- openjdk8
- openjdk9
- openjdk10
- openjdk11
- oraclejdk7
- oraclejdk8
- oraclejdk9
- oraclejdk10
- oraclejdk11

cache:
directories:
- "$HOME/.m2/repository"

script:
- cd bin
- ./sandbox-packages.sh
- cd ..

after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion bin/sandbox-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exit_on_err()
}

# maven package the sandbox
mvn clean package -Dmaven.test.skip=false -f ../pom.xml \
mvn clean cobertura:cobertura package -Dmaven.test.skip=false -f ../pom.xml \
|| exit_on_err 1 "package sandbox failed."

# reset the target dir
Expand Down
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@
</executions>
</plugin>

<!-- GITHUB装逼用 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
<check />
</configuration>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit 42f7b26

Please sign in to comment.