Skip to content

Commit

Permalink
SONARFBUGS-37 Remove devVersion in ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohops committed Aug 27, 2015
1 parent dd72d01 commit fe8f614
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# ---- Maven
target/

# ---- SonarQube
.sonar

# ---- IntelliJ IDEA
*.iws
*.iml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class FindbugsTestSuite {

static {
OrchestratorBuilder orchestratorBuilder = Orchestrator.builderEnv()
.addPlugin("findbugs")
.addPlugin(FileLocation.of("../../target/sonar-findbugs-plugin.jar"))
.addPlugin("java")
.setMainPluginKey("findbugs")
.restoreProfileAtStartup(FileLocation.ofClasspath("/com/sonar/it/java/FindbugsTest/findbugs-backup.xml"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class FindbugsRulingTest {
@ClassRule
public static Orchestrator orchestrator = Orchestrator.builderEnv()
.addPlugin("java")
.addPlugin("findbugs")
.addPlugin(FileLocation.of("../../target/sonar-findbugs-plugin.jar"))
.setMainPluginKey("findbugs")
.addPlugin(MavenLocation.create("org.sonarsource.sonar-lits-plugin", "sonar-lits-plugin", "0.5-SNAPSHOT"))
.restoreProfileAtStartup(FileLocation.of("src/test/resources/profile-findbugs.xml"))
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
Expand Down
12 changes: 6 additions & 6 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,34 @@ CI)
IT-DEV)
installTravisTools

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

build_snapshot "SonarSource/sonarqube"

cd its/plugin
mvn -DfindbugsVersion="DEV" -DjavaVersion="LATEST_RELEASE" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
mvn -DjavaVersion="LATEST_RELEASE" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
;;

IT-LTS)
installTravisTools

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

cd its/plugin
mvn -DfindbugsVersion="DEV" -DjavaVersion="LATEST_RELEASE" -Dsonar.runtimeVersion="LTS_OR_OLDEST_COMPATIBLE" -Dmaven.test.redirectTestOutputToFile=false install
mvn -DjavaVersion="LATEST_RELEASE" -Dsonar.runtimeVersion="LTS" -Dmaven.test.redirectTestOutputToFile=false install
;;

RULING)
installTravisTools

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

build_snapshot "SonarSource/sonar-lits"

export SONAR_IT_SOURCES=$(pwd)/its/sources

cd its/ruling
mvn clean install -Dmaven.test.redirectTestOutputToFile=false -DjavaVersion="LATEST_RELEASE" -DfindbugsVersion="DEV" -Dsonar.runtimeVersion=5.1.1
mvn clean install -Dmaven.test.redirectTestOutputToFile=false -DjavaVersion="LATEST_RELEASE" -Dsonar.runtimeVersion=5.1.1
;;

esac

0 comments on commit fe8f614

Please sign in to comment.