Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…s-2023/gr2338/gr2338 into 122-update-readme-and-workflow-for-release-3
  • Loading branch information
storlien committed Nov 8, 2023
2 parents 3b1512b + ba7767d commit 0acdca0
Show file tree
Hide file tree
Showing 13 changed files with 2,002 additions and 185 deletions.
6 changes: 5 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
before_script:
- cp tracker.json /root/
- cd vendmachtrack/
- mvn clean install -DskipTests

Expand Down Expand Up @@ -28,6 +29,7 @@ checkstyle:
when: always
paths:
- $CI_PROJECT_DIR/vendmachtrack/test-results/checkstyle/*.xml
expire_in: 1 week
needs:
- build

Expand All @@ -42,6 +44,7 @@ spotbugs:
when: always
paths:
- $CI_PROJECT_DIR/vendmachtrack/test-results/spotbugs/**/spotbugs.xml
expire_in: 1 week
needs:
- build

Expand All @@ -56,6 +59,7 @@ test:
when: always
reports:
junit: $CI_PROJECT_DIR/vendmachtrack/test-results/junit/**/*xml
expire_in: 1 week
needs:
- build

Expand All @@ -72,7 +76,7 @@ verify:
when: always
paths:
- $CI_PROJECT_DIR/vendmachtrack/test-results/jacoco/
expire_in: 1 hour
expire_in: 1 week
needs:
- build
- checkstyle
Expand Down
201 changes: 201 additions & 0 deletions vendmachtrack/integrationtests/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
<?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>
<artifactId>integrationtests</artifactId>
<packaging>jar</packaging>

<parent>
<groupId>gr2338</groupId>
<artifactId>vendmachtrack</artifactId>
<version>3.0</version>
</parent>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<testResultsDir>${project.basedir}/../test-results/</testResultsDir>
</properties>

<dependencies>

<!-- junit testing with jupiter -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
</dependency>

<dependency>
<groupId>gr2338</groupId>
<artifactId>core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>gr2338</groupId>
<artifactId>jsonio</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>gr2338</groupId>
<artifactId>ui</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>gr2338</groupId>
<artifactId>springboot</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.1.4</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>3.1.4</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-core</artifactId>
<version>4.0.16-alpha</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-junit5</artifactId>
<version>4.0.16-alpha</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.4.11
</version> <!-- use the appropriate version that's compatible with your Spring Boot version -->
</dependency>
</dependencies>

<profiles>
<profile>
<!-- Profile to exclude graphical UI testing. -->
<!-- This profile is supposed to be used by GitLab CI/CD Pipeline since the docker doesn't have a graphical environment -->
<id>skip-graphical-ui-tests</id>
<build>
<plugins>
<!-- SureFire plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<!-- Exclude graphical UI tests -->
<excludes>
<exclude>**/*UITest*</exclude>
<exclude>**/ui/controller/*Controller*</exclude>
<exclude>**/ui/App*</exclude>
<exclude>**/ui/Main*</exclude>
</excludes>

</configuration>

</plugin>

<!-- Failsafe plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<skipITs>true</skipITs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<!-- SpotBugs plugin -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.7.3.6</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Spring Boot Maven Plugin -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.1.4</version>
<configuration>
<mainClass>vendmachtrack.springboot.SpringbootApplication</mainClass>
<jmxPort>7070</jmxPort>
<!-- <fork>true</fork>-->
</configuration>
<executions>
<execution>
<id>start-springrestserver</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<jmxPort>7070</jmxPort>
<!-- <fork>true</fork>-->
<profiles>
<profile>test</profile>
</profiles>
</configuration>
</execution>
<execution>
<id>stop-springrestserver</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<jmxPort>7070</jmxPort>
<!-- <fork>true</fork>-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

3 changes: 3 additions & 0 deletions vendmachtrack/integrationtests/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module vendmachtrack.integrationtests {

}
Loading

0 comments on commit 0acdca0

Please sign in to comment.