Skip to content

Commit 8d6c69e

Browse files
author
王亮
committed
add travis.yml
1 parent dda494c commit 8d6c69e

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: java
2+
3+
jdk: openjdk8
4+
5+
branches:
6+
only:
7+
- main
8+
- dev
9+
10+
before_install:
11+
- pip install --user codecov
12+
13+
script:
14+
- mvn clean test -P travis
15+
16+
after_success:
17+
- bash <(curl -s https://codecov.io/bash)
18+
19+
env:
20+
global:
21+
- CODECOV_TOKEN=0dad7126-8cfc-4619-a153-8d2e27dc91aa

leaf-server/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@
7070

7171
<build>
7272
<plugins>
73+
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-deploy-plugin</artifactId>
77+
<version>2.8.2</version>
78+
<configuration>
79+
<skip>true</skip>
80+
</configuration>
81+
</plugin>
82+
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-surefire-plugin</artifactId>
86+
<version>2.5</version>
87+
<configuration>
88+
<skipTests>true</skipTests>
89+
</configuration>
90+
</plugin>
91+
7392
<plugin>
7493
<groupId>org.springframework.boot</groupId>
7594
<artifactId>spring-boot-maven-plugin</artifactId>

0 commit comments

Comments
 (0)