Browse Source

Run ITs with SQ 5.2/5.1.2/LTS

tags/2.5-rc1
Duarte Meneses 8 years ago
parent
commit
38d8b26a2a

+ 2
- 0
.travis.yml View File

env: env:
- TESTS=CI - TESTS=CI
- TESTS=IT-DEV - TESTS=IT-DEV
- TESTS=IT-DEV-SQ51
- TESTS=IT-DEV-LTS


matrix: matrix:
fast_finish: true fast_finish: true

+ 6
- 0
it/src/test/java/com/sonar/runner/it/CacheTest.java View File

*/ */
package com.sonar.runner.it; package com.sonar.runner.it;


import org.junit.Assume;

import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;
import org.junit.Rule; import org.junit.Rule;


@Test @Test
public void testIssuesMode() throws IOException { public void testIssuesMode() throws IOException {
Assume.assumeTrue(orchestrator.getServer().version().isGreaterThanOrEquals("5.2"));
// online, without cache -> should sync // online, without cache -> should sync
ensureStarted(); ensureStarted();
SonarRunner build = createRunner("issues", true); SonarRunner build = createRunner("issues", true);


@Test @Test
public void testPublishModeOffline() throws IOException { public void testPublishModeOffline() throws IOException {
Assume.assumeTrue(orchestrator.getServer().version().isGreaterThanOrEquals("5.2"));
// online (cache not used) // online (cache not used)
ensureStarted(); ensureStarted();
SonarRunner build = createRunner("publish"); SonarRunner build = createRunner("publish");

+ 1
- 1
it/src/test/java/com/sonar/runner/it/JavaTest.java View File



SonarRunner build = newRunner(new File("projects/java-sample")) SonarRunner build = newRunner(new File("projects/java-sample"))
.setProperty("sonar.verbose", "true") .setProperty("sonar.verbose", "true")
.addArguments("-e", "-X");
.addArguments("-e");
// SONARPLUGINS-3061 // SONARPLUGINS-3061
// Add a trailing slash // Add a trailing slash
build.setProperty("sonar.host.url", orchestrator.getServer().getUrl() + "/"); build.setProperty("sonar.host.url", orchestrator.getServer().getUrl() + "/");

+ 18
- 0
travis.sh View File

mvn -DsonarRunner.version="2.5-SNAPSHOT" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install mvn -DsonarRunner.version="2.5-SNAPSHOT" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
;; ;;


IT-DEV-SQ51)
installTravisTools

mvn install -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true

cd it
mvn -DsonarRunner.version="2.5-SNAPSHOT" -Dsonar.runtimeVersion="5.1.2" -Dmaven.test.redirectTestOutputToFile=false install
;;

IT-DEV-LTS)
installTravisTools

mvn install -Dsource.skip=true -Denforcer.skip=true -Danimal.sniffer.skip=true -Dmaven.test.skip=true

cd it
mvn -DsonarRunner.version="2.5-SNAPSHOT" -Dsonar.runtimeVersion="4.5.5" -Dmaven.test.redirectTestOutputToFile=false install
;;

esac esac

Loading…
Cancel
Save