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 /sonar-db/pom.xml | |
parent | a1be1bb19a200cf6cc2e2685972623df96e553fd (diff) | |
download | sonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.tar.gz sonarqube-e851411f7fd6a1e9f8e94caf92ef10699acb03a9.zip |
Enable QA pipeline at SonarSource
Diffstat (limited to 'sonar-db/pom.xml')
-rw-r--r-- | sonar-db/pom.xml | 65 |
1 files changed, 56 insertions, 9 deletions
diff --git a/sonar-db/pom.xml b/sonar-db/pom.xml index 0715efa447c..86339eed76d 100644 --- a/sonar-db/pom.xml +++ b/sonar-db/pom.xml @@ -1,5 +1,6 @@ <?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"> +<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> @@ -140,11 +141,59 @@ <profiles> <profile> + <id>create-db</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>download-sq</id> + <goals> + <goal>get</goal> + </goals> + <phase>generate-test-resources</phase> + <configuration> + <artifact>${project.groupId}:sonar-application:${project.version}:zip</artifact> + <transitive>false</transitive> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.sonarsource.orchestrator</groupId> + <artifactId>orchestrator-maven-plugin</artifactId> + <version>${orchestrator.version}</version> + <executions> + <execution> + <id>create-db</id> + <goals> + <goal>create-db</goal> + </goals> + <phase>generate-test-resources</phase> + <configuration> + <sqVersion>${project.version}</sqVersion> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + + <profile> <!-- SonarSource internal use --> - <id>dbTests</id> + <id>with-db-drivers</id> <activation> <property> - <name>dbTests</name> + <name>with-db-drivers</name> </property> </activation> <properties> @@ -160,18 +209,16 @@ <artifactId>postgresql</artifactId> </dependency> <dependency> - <!-- this artifact is located in the SonarSource internal repository --> - <groupId>com.oracle</groupId> - <artifactId>ojdbc6</artifactId> - <version>11.2.0.3.0</version> - <scope>test</scope> + <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> + <systemPath>${project.basedir}/../sonar-application/src/main/assembly/lib/jdbc/mssql/sqljdbc41.jar + </systemPath> </dependency> </dependencies> </profile> |