Skip to content
Snippets Groups Projects
Commit 96d0e18d authored by Martin Weise's avatar Martin Weise
Browse files

added report module for database service

parent a78f2fc7
No related branches found
No related tags found
4 merge requests!81New stable release,!43Merge dev to master,!23Sprint results,!18Merge Conflicts
...@@ -52,7 +52,7 @@ test-backend-database: ...@@ -52,7 +52,7 @@ test-backend-database:
- "./fda-database-service/rest-service/src/test/resources/integration-test.before" - "./fda-database-service/rest-service/src/test/resources/integration-test.before"
- "mvn -f fda-database-service/pom.xml clean test verify" - "mvn -f fda-database-service/pom.xml clean test verify"
- "./fda-database-service/rest-service/src/test/resources/integration-test.after" - "./fda-database-service/rest-service/src/test/resources/integration-test.after"
# - cat fda-database-service/rest-service/target/site/jacoco/index.html - cat ./fda-database-service/report/target/site/jacoco-aggregate/index.html
needs: needs:
- build-metadata-db - build-metadata-db
dependencies: dependencies:
......
...@@ -14,6 +14,7 @@ COPY --from=dependency /root/.m2/repository/at/tuwien /root/.m2/repository/at/tu ...@@ -14,6 +14,7 @@ COPY --from=dependency /root/.m2/repository/at/tuwien /root/.m2/repository/at/tu
COPY ./rest-service ./rest-service COPY ./rest-service ./rest-service
COPY ./gateway ./gateway COPY ./gateway ./gateway
COPY ./services ./services COPY ./services ./services
COPY ./report ./report
RUN mvn -q clean package -DskipTests RUN mvn -q clean package -DskipTests
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
<module>gateway</module> <module>gateway</module>
<module>rest-service</module> <module>rest-service</module>
<module>services</module> <module>services</module>
<module>report</module>
</modules> </modules>
<properties> <properties>
...@@ -160,6 +161,34 @@ ...@@ -160,6 +161,34 @@
</dependency> </dependency>
</dependencies> </dependencies>
<!-- build in ./rest-service/pom.xml --> <build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<excludes>
<exclude>**/FdaDatabaseManagingApplication.class</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>at.tuwien</groupId>
<artifactId>fda-database-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>report</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>fda-database-service-report</name>
<properties>
<jacoco.version>0.8.7</jacoco.version>
</properties>
<dependencies>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>gateway</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>rest-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>services</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
...@@ -38,31 +38,6 @@ ...@@ -38,31 +38,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<excludes>
<exclude>**/FdaDatabaseManagingApplication.class</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
......
...@@ -22,6 +22,4 @@ ...@@ -22,6 +22,4 @@
</dependency> </dependency>
</dependencies> </dependencies>
<!-- maven compile plugin for mapstruct and project lombok -->
</project> </project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment