File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
its/ruling/src/test/java/org/sonarsource/slang Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,28 @@ qa_ruling_kotlin_task:
198
198
<< : *LINUX_6_CPU_12G_JAVA_17
199
199
<< : *GRADLE_ITS_TEMPLATE
200
200
201
+ qa_ruling_kotlin_compiler_task :
202
+ << : *QA_TASK_FILTER
203
+ env :
204
+ KOTLIN_COMPILER_IT_ENABLED : " true"
205
+ SQ_VERSION : " LATEST_RELEASE"
206
+ GIT_SUB_MODULE : " its/sources"
207
+ << : *LINUX_6_CPU_12G_JAVA_17
208
+ << : *SETUP_GRADLE_CACHE
209
+ run_its_script :
210
+ - |
211
+ if [ -n "${GIT_SUB_MODULE}" ]; then
212
+ git submodule update --init --depth 1 "${GIT_SUB_MODULE}"
213
+ fi
214
+ - source cirrus-env QA
215
+ - ./gradlew :its:ruling:test --tests "org.sonarsource.slang.SlangRulingTest.test_kotlin_compiler" -Pruling
216
+ " -Dsonar.runtimeVersion=${SQ_VERSION}"
217
+ " -Dorchestrator.configUrl=https://repox.jfrog.io/repox/orchestrator.properties/orch-h2.properties"
218
+ " -Dorchestrator.artifactory.accessToken=${ARTIFACTORY_ACCESS_TOKEN}"
219
+ " -DbuildNumber=$BUILD_NUMBER"
220
+ -Pqa --info --console plain --no-daemon --build-cache
221
+ << : *CLEANUP_GRADLE_CACHE_SCRIPT
222
+
201
223
build_win_task :
202
224
<< : *QA_TASK_FILTER
203
225
<< : *WINDOWS_4_CPU_15G
@@ -218,6 +240,7 @@ promote_task:
218
240
- qa_plug_pub_lin
219
241
- qa_plug_pub_win
220
242
- qa_ruling_kotlin
243
+ - qa_ruling_kotlin_compiler
221
244
- build_win
222
245
- ws_scan
223
246
<< : *ONLY_IF_SONARSOURCE_QA
Original file line number Diff line number Diff line change 43
43
import org .junit .jupiter .api .AfterAll ;
44
44
import org .junit .jupiter .api .BeforeAll ;
45
45
import org .junit .jupiter .api .Test ;
46
+ import org .junit .jupiter .api .condition .EnabledIfEnvironmentVariable ;
46
47
import org .slf4j .Logger ;
47
48
import org .slf4j .LoggerFactory ;
48
49
import org .sonarsource .analyzer .commons .ProfileGenerator ;
@@ -102,6 +103,7 @@ private static void addLanguagePlugins(OrchestratorBuilder builder) {
102
103
}
103
104
104
105
@ Test
106
+ @ EnabledIfEnvironmentVariable (named = "KOTLIN_COMPILER_IT_ENABLED" , matches = "true" )
105
107
void test_kotlin_compiler () throws IOException {
106
108
List <String > exclusions = List .of (
107
109
"**/testData/**/*" ,
You can’t perform that action at this time.
0 commit comments