Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy dependency caches for testkit tests #180

Merged
merged 1 commit into from
Nov 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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