Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Empty file modified .gitignore
100755 → 100644
Empty file.
Empty file modified LICENSE.txt
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,25 @@
<useDefaultDelimiters>false</useDefaultDelimiters>
</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>
<pluginManagement>
<plugins>
Expand All @@ -423,6 +442,8 @@
<configuration>
<finalName>hesperides-${project.version}</finalName>
<classifier>app</classifier>
<!-- Pass $argLine variable set by Jacoco: -->
<jvmArguments>${argLine}</jvmArguments>
</configuration>
<dependencies>
<dependency>
Expand Down