diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c0aa1957a26126c417ff16bf5cb73ae70e66edc..5b00776bba3cf0c7c6edfa0e2bfdac98538e10a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,3 +5,4 @@ include: - local: "/.gitlab-common-ci.yml" - local: "/wordWrap/.gitlab-ci.yml" - local: "/romanNumerals/.gitlab-ci.yml" + - local: "/stringCalculator/.gitlab-ci.yml" diff --git a/stringCalculator/.gitlab-ci.yml b/stringCalculator/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a83cd56f95634cba2916b0d9c27d8646ee22f2fc --- /dev/null +++ b/stringCalculator/.gitlab-ci.yml @@ -0,0 +1,24 @@ +stages: + - build + +package-string-calculator: + extends: .java + stage: build + tags: + - docker + script: + - cd stringCalculator + - mvn $MAVEN_CLI_OPTS clean package + - cat target/site/jacoco/index.html + artifacts: + reports: + junit: stringCalculator/target/surefire-reports/TEST-*.xml + expire_in: 1 day + only: + refs: + - master + - merge_requests + changes: + - ".gitlab-ci.yml" + - ".gitlab-common-ci.yml" + - "stringCalculator/**/*" diff --git a/stringCalculator/README.md b/stringCalculator/README.md new file mode 100644 index 0000000000000000000000000000000000000000..df98c36e8858fbd6a3f2e0830160ccb7b8ec4740 --- /dev/null +++ b/stringCalculator/README.md @@ -0,0 +1,7 @@ +<p align="center"> + <a href="https://fr.ippon.tech/" target="_blank"> + <img alt="Ippon Technologies Logo" width="100" src="https://fr.ippon.tech/assets/images/common/Logo.svg"> + </a> +</p> + +# Ippon Kata : String Calculator diff --git a/stringCalculator/pom.xml b/stringCalculator/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..4c1471bf84fc019f14d53e535500834f13c8959b --- /dev/null +++ b/stringCalculator/pom.xml @@ -0,0 +1,98 @@ +<?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> + + <version>1.0.0-SNAPSHOT</version> + <groupId>fr.ippon.kata</groupId> + <artifactId>string-calculator</artifactId> + + <name>StringCalculator</name> + + <properties> + <java.version>14</java.version> + + <junit.version>5.7.0-M1</junit.version> + <assertj.version>3.16.1</assertj.version> + <mockito.version>3.1.0</mockito.version> + + <surefire-plugin.version>3.0.0-M4</surefire-plugin.version> + <compiler-plugin.version>3.8.1</compiler-plugin.version> + <jacoco.version>0.8.5</jacoco.version> + </properties> + + <developers> + <developer> + <email>cdamon@ippon.fr</email> + <name>Colin DAMON</name> + </developer> + <developer> + <email>mfillatre@ippon.fr</email> + <name>Marina FILLATRE</name> + </developer> + </developers> + + + <dependencies> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-engine</artifactId> + <version>${junit.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.assertj</groupId> + <artifactId>assertj-core</artifactId> + <version>${assertj.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-junit-jupiter</artifactId> + <version>${mockito.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${surefire-plugin.version}</version> + </plugin> + + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>${compiler-plugin.version}</version> + <configuration> + <source>${java.version}</source> + <target>${java.version}</target> + </configuration> + </plugin> + + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${jacoco.version}</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> + </build> +</project>