From a24c7291f10d7d945351417eccfee8d36b9fd64c Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Tue, 2 Nov 2021 10:59:40 +0100 Subject: [PATCH] Enabling CodeCov --- .github/workflows/ci.yml | 10 ++++++---- .gitignore | 0 LICENSE.txt | 0 README.md | 1 + pom.xml | 21 +++++++++++++++++++++ 5 files changed, 28 insertions(+), 4 deletions(-) mode change 100755 => 100644 .gitignore mode change 100755 => 100644 LICENSE.txt mode change 100755 => 100644 README.md 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 [![Build, test and publish](https://github.com/voyages-sncf-technologies/hesperides/workflows/Build,%20test%20and%20publish/badge.svg)](https://github.com/voyages-sncf-technologies/hesperides/actions?query=branch%3Amaster) +[![codecov](https://codecov.io/gh/voyages-sncf-technologies/hesperides/branch/master/graph/badge.svg)](https://codecov.io/gh/voyages-sncf-technologies/hesperides) [![](https://img.shields.io/github/contributors/voyages-sncf-technologies/hesperides.svg)](https://github.com/voyages-sncf-technologies/hesperides/graphs/contributors) [![](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](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}