Skip to content

Commit

Permalink
SLE-926: macOS support for running in shell
Browse files Browse the repository at this point in the history
When running on macOS we have to add a specific argument to make it usable, e.g. when running UTs/ITs on the command line.
  • Loading branch information
thahnen committed Sep 2, 2024
1 parent 0839af0 commit 7f2bd19
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 16 deletions.
23 changes: 8 additions & 15 deletions its/org.sonarlint.eclipse.its.connected.sc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,21 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<!--
Since we use product files for the runtime configuration we have to configure SonarCloud URLs before the
IDE starts in order to hand it over to the RPC server of SLCORE.
-->
<systemProperties>
<sonarlint.internal.sonarcloud.url>https://sc-staging.io</sonarlint.internal.sonarcloud.url>
<sonarlint.internal.sonarcloud.websocket.url>wss://events-api.sc-staging.io/</sonarlint.internal.sonarcloud.websocket.url>
</systemProperties>
<install>
<iu>
<id>org.sonarlint.eclipse.its.connected.sc.product</id>
</iu>
</install>
</configuration>
</plugin>

<!--
Since we use product files for the runtime configuration we have to configure SonarCloud URLs before the IDE
starts in order to hand it over to the RPC server of SLCORE.
-->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<sonarlint.internal.sonarcloud.url>https://sc-staging.io</sonarlint.internal.sonarcloud.url>
<sonarlint.internal.sonarcloud.websocket.url>wss://events-api.sc-staging.io/</sonarlint.internal.sonarcloud.websocket.url>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions its/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,26 @@
</plugins>
</build>
</profile>

<!-- Used on macOS in order to be able to run ITs when Maven invoked from terminal -->
<profile>
<id>macOS-its</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<argLine>-XstartOnFirstThread</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
22 changes: 21 additions & 1 deletion org.sonarlint.eclipse.core.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,26 @@
</plugins>
</build>
</profile>
</profiles>

<!-- Used on macOS in order to be able to run UTs when Maven invoked from terminal -->
<profile>
<id>macOS-uts</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
<argLine>-XstartOnFirstThread</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 7f2bd19

Please sign in to comment.