Revert "TSK-369: Add sonarcloud to travis"

This reverts commit 4e7a71bf94.
This commit is contained in:
Mustapha Zorgati 2020-01-21 16:34:57 +01:00 committed by Holger Hagen
parent c54c64a85c
commit 3bea7412c4
13 changed files with 67 additions and 204 deletions

1
.gitignore vendored
View File

@ -44,6 +44,7 @@ node_modules/
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log

0
.sonarcloud.properties Normal file
View File

View File

@ -6,12 +6,8 @@ language: java
jdk:
- openjdk8
addons:
sonarcloud:
organization: "benjamineckstein" # the key of the org you chose at step #3
git:
depth: false
depth: 3
services:
- docker
@ -43,7 +39,6 @@ env:
install: skip
script: ci/test.sh $DB
before_cache: rm -rf $HOME/.m2/repository/pro/taskana
jobs:

View File

@ -33,7 +33,6 @@ function main() {
eval "$REL/prepare_db.sh '$1'"
# We can not use the fance '-f' maven option due to a bug in arquillian. See https://issues.jboss.org/browse/THORN-2049
(cd $REL/.. && mvn -q install -B -T 4C -am -Dmaven.javadoc.skip -Dcheckstyle.skip)
mvn sonar:sonar -Dsonar.projectKey=benjamineckstein_taskana
;;
DB2_10_5 | DB2_11_1)
set -x

View File

@ -1,124 +0,0 @@
<?xml version="1.0"?>
<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">
<parent>
<groupId>pro.taskana</groupId>
<artifactId>taskana-parent</artifactId>
<version>1.2.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>taskana-coverage</artifactId>
<name>${project.groupId}:${project.artifactId}</name>
<url>http://maven.apache.org</url>
<dependencies>
<!--
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-simplehistory-provider</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-simplehistory-rest-spring</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-simplehistory-rest-spring-example</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-simplehistory-spring-test</artifactId>
<version>${project.version}</version>
</dependency>
-->
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-cdi</artifactId>
<version>${project.version}</version>
</dependency>
<!--
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-cdi-example</artifactId>
<version>${project.version}</version>
</dependency>
-->
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-data</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-spring</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-spring-example</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-rest-spring</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-rest-spring-example-boot</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-rest-spring-example-common</artifactId>
<version>${project.version}</version>
</dependency>
<!--
<dependency>
<groupId>pro.taskana</groupId>
<artifactId>taskana-rest-spring-example-wildfly</artifactId>
<version>${project.version}</version>
</dependency>
-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.jacoco}</version>
<executions>
<!--aggregated unit test coverage report -->
<execution>
<id>aggregate-reports-ut</id>
<phase>install</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<title>Maven Multimodule Coverage Demo: Coverage of Unit Tests</title>
<dataFileIncludes>**/jacoco.exec</dataFileIncludes>
<outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -92,6 +92,24 @@
<build>
<plugins>
<!-- Required for generation of REST documentation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.maven.surefire}</version>
<configuration>
<!-- Required for skip plugin tests by default -->
<excludes>
<exclude>**/*Plugin*Test.java</exclude>
</excludes>
<includes>
<include>**/*Test.java</include>
<include>**/*Documentation.java</include>
</includes>
<!-- Travis build workaround to prevent error that VM is closed due to an error. -->
<argLine>-Xms1024m -Xmx2048m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>

View File

@ -26,23 +26,5 @@
<artifactId>taskana-cdi</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${version.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${version.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${version.junit.jupiter}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -1,14 +0,0 @@
package pro.taskana;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/** Placeholder test class until we have real tests. */
class ExampleBootstrap {
/** TODO add real tests. */
@Test
void sampleTest() {
Assertions.assertTrue(true);
}
}

29
pom.xml
View File

@ -15,7 +15,6 @@
<module>rest</module>
<!-- History is an optional module. -->
<module>history</module>
<module>coverage</module>
</modules>
<properties>
@ -77,6 +76,7 @@
<version.equalsverifier>3.1.11</version.equalsverifier>
<version.openpojo>0.8.13</version.openpojo>
<version.jacoco>0.8.3</version.jacoco>
<jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</jacoco.reportPath>
<!-- database driver versions -->
<version.h2>1.4.197</version.h2>
@ -244,9 +244,36 @@
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<append>true</append>
<destFile>${jacoco.reportPath}</destFile>
</configuration>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>jacoco-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<limits>
<limit>
<minimum>0.0</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>

View File

@ -95,25 +95,8 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${version.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${version.junit.jupiter}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${version.junit.jupiter}</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>history.plugin</id>

View File

@ -1,17 +0,0 @@
package pro.taskana.rest;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/**
* Placeholder test class until we have real tests.
*/
class ExampleRestApplicationTest {
/** TODO add real tests */
@Test
void sampleTest() {
Assertions.assertTrue(true);
}
}

View File

@ -161,6 +161,24 @@
<build>
<plugins>
<!-- Required for generation of REST documentation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.maven.surefire}</version>
<configuration>
<!-- Required for skip plugin tests by default -->
<excludes>
<exclude>**/*Plugin*Test.java</exclude>
</excludes>
<includes>
<include>**/*Test.java</include>
<include>**/*Documentation.java</include>
</includes>
<!-- Travis build workaround to prevent error that VM is closed due to an error. -->
<argLine>-Xms1024m -Xmx2048m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>

View File

@ -1,5 +0,0 @@
sonar.projectKey=benjamineckstein_taskana
sonar.java.coveragePlugin=jacoco
sonar.jacoco.reportPath=**/jacoco.*
sonar.dynamicAnalysis=reuseReports