diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-02-05 16:51:05 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-02-10 17:13:16 +0100 |
commit | e851411f7fd6a1e9f8e94caf92ef10699acb03a9 (patch) | |
tree | adfa5ee5511d0e4b6c7410279d302b42c9d987ee /it/it-tests/pom.xml | |
parent | a1be1bb19a200cf6cc2e2685972623df96e553fd (diff) | |
download | sonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.tar.gz sonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.zip |
Enable QA pipeline at SonarSource
Diffstat (limited to 'it/it-tests/pom.xml')
-rw-r--r-- | it/it-tests/pom.xml | 86 |
1 files changed, 77 insertions, 9 deletions
diff --git a/it/it-tests/pom.xml b/it/it-tests/pom.xml index 850b38105bf..d3d4d665a28 100644 --- a/it/it-tests/pom.xml +++ b/it/it-tests/pom.xml @@ -21,19 +21,14 @@ <dependency> <groupId>org.sonarsource.orchestrator</groupId> <artifactId>sonar-orchestrator</artifactId> - <version>3.10.1</version> + <version>${orchestrator.version}</version> <scope>test</scope> </dependency> <dependency> - <groupId>org.sonarsource.sonarqube</groupId> - <artifactId>sonar-xoo-plugin</artifactId> - <version>${project.version}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.sonarsource.sonarqube</groupId> + <groupId>${project.groupId}</groupId> <artifactId>sonar-application</artifactId> <version>${project.version}</version> + <type>zip</type> <scope>provided</scope> </dependency> <dependency> @@ -121,7 +116,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <argLine>-Xmx128m -Dsonar.runtimeVersion=${project.version}</argLine> + <argLine>-Xmx128m -Dsonar.runtimeVersion=${project.version} -Dmaven.localRepository=${settings.localRepository}</argLine> <skipTests>${skipIts}</skipTests> <includes> <include>*/${category}Suite.java</include> @@ -131,4 +126,77 @@ </plugins> </build> + <profiles> + <profile> + <id>qa</id> + <activation> + <property> + <name>env.SONARSOURCE_QA</name> + <value>true</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-xoo-plugin</id> + <phase>generate-test-resources</phase> + <goals> + <goal>copy</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>${project.groupId}</groupId> + <artifactId>sonar-xoo-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <overWrite>true</overWrite> + </artifactItem> + </artifactItems> + <outputDirectory>../../plugins/sonar-xoo-plugin/target</outputDirectory> + <overWriteReleases>true</overWriteReleases> + <overWriteSnapshots>true</overWriteSnapshots> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>with-db-drivers</id> + <activation> + <property> + <name>with-db-drivers</name> + </property> + </activation> + <dependencies> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + </dependency> + <dependency> + <groupId>org.postgresql</groupId> + <artifactId>postgresql</artifactId> + </dependency> + <dependency> + <groupId>com.oracle</groupId> + <artifactId>ojdbc6</artifactId> + </dependency> + <dependency> + <groupId>com.microsoft.sqljdbc</groupId> + <artifactId>sqljdbc41</artifactId> + <version>4.1</version> + <scope>system</scope> + <systemPath>${project.basedir}/../../sonar-application/src/main/assembly/lib/jdbc/mssql/sqljdbc41.jar + </systemPath> + </dependency> + </dependencies> + </profile> + </profiles> + </project> |