diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 53fa3b796..1a13e85bc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,7 +29,9 @@ jobs:
path: ~/.m2/repository
key: ${{ hashFiles('**/pom.xml') }}
- name: Launching tests with Maven
- run: mvn test -pl '!tests/activedirectory-integration,!tests/mongo-integration,!tests/regression'
+ run: |
+ mvn test -B -pl '!tests/activedirectory-integration,!tests/mongo-integration,!tests/regression' jacoco:report-aggregate
+ bash <(curl -s https://codecov.io/bash)
mongodb-integration-tests:
runs-on: ubuntu-latest
@@ -48,12 +50,12 @@ jobs:
mongodb-version: 4.0
- name: Launching tests with Maven
run: |
- mvn install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Djacoco.skip=true
- mvn spring-boot:run -pl bootstrap -Dspring.profiles.active=mongo,noldap &
+ mvn install -B -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Djacoco.skip=true
+ mvn spring-boot:run -B -pl bootstrap -Dspring.profiles.active=mongo,noldap &
mongo hesperides mongo_create_collections.js
# Give some time for the application to start:
sleep 30
- mvn -pl tests/mongo-integration verify
+ mvn -B -pl tests/mongo-integration verify
docker-build:
runs-on: ubuntu-latest
diff --git a/.gitignore b/.gitignore
old mode 100755
new mode 100644
diff --git a/LICENSE.txt b/LICENSE.txt
old mode 100755
new mode 100644
diff --git a/README.md b/README.md
old mode 100755
new mode 100644
index 48d543843..0ffe69afc
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# Hesperides backend
[](https://github.com/voyages-sncf-technologies/hesperides/actions?query=branch%3Amaster)
+[](https://codecov.io/gh/voyages-sncf-technologies/hesperides)
[](https://github.com/voyages-sncf-technologies/hesperides/graphs/contributors)
[](http://makeapullrequest.com)
diff --git a/pom.xml b/pom.xml
index 01d37f077..7e18acee6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -414,6 +414,25 @@
false
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.7
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
@@ -423,6 +442,8 @@
hesperides-${project.version}
app
+
+ ${argLine}