cache disabled for tests temporary

This commit is contained in:
Ilya.Kazakevich
2018-10-17 00:44:09 +03:00
parent 32ecb5240d
commit 37ed965730
+6 -6
View File
@@ -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
}
//}
}
}