Skip to content

Commit

Permalink
ITs: Do not rely on UC for Erlang DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolkensteyn committed Aug 14, 2015
1 parent 865ad36 commit 7152a56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,6 +1,9 @@
# Maven
target/

# SonarQube
.sonar/

# IntelliJ IDEA
*.iws
*.iml
Expand Down
Expand Up @@ -43,8 +43,7 @@ public class ErlangTestSuite {
private static Orchestrator initOrchestrator() {
OrchestratorBuilder builder = Orchestrator.builderEnv();
builder
.addPlugin(PLUGIN_KEY)
.setMainPluginKey(PLUGIN_KEY)
.addPlugin(FileLocation.of("../../sonar-erlang-plugin/target/sonar-erlang-plugin.jar"))
.restoreProfileAtStartup(FileLocation.ofClasspath("/com/sonar/it/erlang/issue-profile.xml"))
.restoreProfileAtStartup(FileLocation.ofClasspath("/com/sonar/it/erlang/empty-profile.xml"));

Expand Down
1 change: 1 addition & 0 deletions sonar-erlang-plugin/pom.xml
Expand Up @@ -72,6 +72,7 @@
</dependencies>

<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
8 changes: 4 additions & 4 deletions travis.sh
Expand Up @@ -17,21 +17,21 @@ 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 -DerlangVersion="DEV" -Dsonar.runtimeVersion="DEV" -Dmaven.test.redirectTestOutputToFile=false install
mvn -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 -DerlangVersion="DEV" -Dsonar.runtimeVersion="LTS_OR_OLDEST_COMPATIBLE" -Dmaven.test.redirectTestOutputToFile=false install
mvn -Dsonar.runtimeVersion="LTS" -Dmaven.test.redirectTestOutputToFile=false install
;;

esac

0 comments on commit 7152a56

Please sign in to comment.