mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cache disabled for tests temporary
This commit is contained in:
@@ -82,7 +82,7 @@ envs {
|
||||
["django==1.11", "tox", "nose", "pytest", "Twisted", "behave", "lettuce>=0.2.22", "unittest2", "teamcity-messages", "django-nose"]
|
||||
+ ( Os.isFamily(Os.FAMILY_WINDOWS) ? ['pypiwin32'] : [] ) //win32api is required for pypiwin32
|
||||
,
|
||||
"python2.7\ndjango\nnose\npytest\nbehave\nlettuce\npackaging\ntox\nunittest2\ntwisted\ndjango-nose",
|
||||
"python2.7\ndjango\nnose\npytest\nbehave\nlettuce\npackaging\ntox\nunittest2\ntwisted==17.9\ndjango-nose",
|
||||
true)
|
||||
|
||||
createPython("py35_django20_full",
|
||||
@@ -143,21 +143,21 @@ task prepare(type: Delete) {
|
||||
|
||||
doFirst {
|
||||
new File(envs.bootstrapDirectory, "django_latest").with { djangoLatestFolder ->
|
||||
if (djangoLatestFolder.exists() && djangoLatestFolder.lastModified() < System.currentTimeMillis() - 24 * 60 * 60 * 1000) {
|
||||
// if (djangoLatestFolder.exists() && djangoLatestFolder.lastModified() < System.currentTimeMillis() - 24 * 60 * 60 * 1000) {
|
||||
// older then a day
|
||||
println "Cleaning django_latest at" + djangoLatestFolder
|
||||
delete djangoLatestFolder
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
if (!envs.bootstrapDirectory.exists() || (System.getenv("NO_CLEAN") == null && envs.envsDirectory.exists() &&
|
||||
envs.envsDirectory.lastModified() < project.buildscript.sourceFile.lastModified())) {
|
||||
// if (!envs.bootstrapDirectory.exists() || (System.getenv("NO_CLEAN") == null && envs.envsDirectory.exists() &&
|
||||
// envs.envsDirectory.lastModified() < project.buildscript.sourceFile.lastModified())) {
|
||||
// clean the cache if the build script was modified later
|
||||
println "Cleaning cached environments at " + envs.envsDirectory
|
||||
delete envs.envsDirectory
|
||||
println "Cleaning cached pythons at " + envs.bootstrapDirectory
|
||||
delete envs.bootstrapDirectory
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user