Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add coverage #351

Merged
merged 2 commits into from
Sep 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add coverage
HarrisChu committed Sep 17, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4f173d9658ae94dd2b7604d0a01c28bf882305ec
4 changes: 3 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -45,4 +45,6 @@ jobs:
popd

- name: Build with Maven
run: mvn -B package
run: |
mvn -B package
bash <(curl -s https://codecov.io/bash)
9 changes: 9 additions & 0 deletions client/src/test/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --expired_time_factor=2
- --ws_h2_port=11000
healthcheck:
test: ["CMD", "curl", "-f", "http://172.28.1.1:11000/status"]
interval: 30s
@@ -52,6 +53,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --expired_time_factor=2
- --ws_h2_port=11000
healthcheck:
test: ["CMD", "curl", "-f", "http://172.28.1.2:11000/status"]
interval: 30s
@@ -88,6 +90,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --expired_time_factor=2
- --ws_h2_port=11000
healthcheck:
test: ["CMD", "curl", "-f", "http://172.28.1.3:11000/status"]
interval: 30s
@@ -124,6 +127,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --timezone_name=+08:00:00
- --ws_h2_port=12000
depends_on:
- metad0
- metad1
@@ -164,6 +168,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --timezone_name=+08:00:00
- --ws_h2_port=12000
depends_on:
- metad0
- metad1
@@ -204,6 +209,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --timezone_name=+08:00:00
- --ws_h2_port=12000
depends_on:
- metad0
- metad1
@@ -242,6 +248,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --timezone_name=+08:00:00
- --ws_h2_port=13000
depends_on:
- metad0
- metad1
@@ -279,6 +286,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --timezone_name=+08:00:00
- --ws_h2_port=13000
depends_on:
- metad0
- metad1
@@ -316,6 +324,7 @@ services:
- --minloglevel=0
- --heartbeat_interval_secs=2
- --timezone_name=+08:00:00
- --ws_h2_port=13000
depends_on:
- metad0
- metad1
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ignore:
- "client/src/main/generated"
- "client/src/main/fbthrift"
23 changes: 20 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.vesoft</groupId>
@@ -138,6 +136,25 @@
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>