Skip to content

Commit

Permalink
prep aop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Jul 4, 2024
1 parent 5893fd8 commit 2342ef0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ configurations {

idea {
module {
testSourceDirs += file('src/inttest/java')
testSources = files(file("src/test/java"), file("src/inttest/java"))
}
}

Expand All @@ -67,7 +67,7 @@ configurations {
}


task inttest(type: Test) {
tasks.register('inttest', Test) {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = "Runs the integration tests."

Expand Down Expand Up @@ -106,13 +106,14 @@ configurations {
codacy
}

task sendCoverageToCodacy(type: JavaExec, dependsOn: jacocoTestReport) {
tasks.register('sendCoverageToCodacy', JavaExec) {
dependsOn jacocoTestReport
mainClass = "com.codacy.CodacyCoverageReporter"
classpath = configurations.codacy
args = ["report", "-l", "Java", "-r", "${buildDir}/reports/jacoco/test/jacocoTestReport.xml"]
}

configurations.all {
configurations.configureEach {
// Cache -SNAPSHOT for 60 seconds only
resolutionStrategy.cacheChangingModulesFor 60, 'seconds'
}
Expand All @@ -129,6 +130,9 @@ test {
processAot {
environment("FAF_DOMAIN", "faforever.com")
environment("API_PROFILE", "")
environment("CHALLONGE_KEY", "test")
environment("GITHUB_ACCESS_TOKEN", "test")
environment("MAIL_HOST", "test")
}

processTestAot {
Expand Down

0 comments on commit 2342ef0

Please sign in to comment.