Skip to content

Commit

Permalink
Copy dependency caches for testkit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme committed Nov 14, 2020
1 parent 45fd1b0 commit 70b0f51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ out/
# Gradle
.gradle/
build/

testkit-dir/
# Local configuration file (sdk path, etc)
local.properties
local.properties
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,21 @@ configure(subprojects.findAll{p-> p.name.contains('plugin')}){
}
}

tasks.withType(Test) {
def testkitDir = System.getenv("CI") ? gradle.gradleUserHomeDir : "$rootDir/testkit-dir"
systemProperty 'gradle.project.version', version
systemProperty 'org.gradle.testkit.dir', testkitDir
}

minimumIntegrationTest {
dependsOn("install")
systemProperty 'gradle.project.version', version
systemProperty 'xtext.version', minimumXtextVersion
}

task latestIntegrationTest(type: Test) {
classpath = minimumIntegrationTest.classpath
testClassesDirs = minimumIntegrationTest.testClassesDirs
dependsOn("install")
systemProperty 'gradle.project.version', version
systemProperty 'xtext.version', latestXtextVersion
enabled = JavaVersion.current().java8Compatible
}
Expand Down

0 comments on commit 70b0f51

Please sign in to comment.