Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
51fe7953
Commit
51fe7953
authored
6 years ago
by
Ilya.Kazakevich
Browse files
Options
Download
Email Patches
Plain Diff
fix django tests: support "Django trunk only"
parent
047d87c2
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/setup-test-environment/build.gradle
+11
-1
python/setup-test-environment/build.gradle
with
11 additions
and
1 deletion
+11
-1
python/setup-test-environment/build.gradle
+
11
-
1
View file @
51fe7953
...
...
@@ -22,14 +22,19 @@ plugins {
* Pitfall: TMP var on windows points to very long path inside of user local dir and may lead to errors.
* It is recommended to create "c:\temp\" with full write access and set TMP="c:\temp\" on Windows.
*
* When -DdjangoTrunkOnly passed, only install django_latest for Django Trunk tests
*
* ``PyEnvTestSettings`` class uses these vars also.
*
*
*/
envs
{
bootstrapDirectory
=
new
File
(
System
.
getenv
().
getOrDefault
(
"PYCHARM_PYTHONS"
,
new
File
(
buildDir
,
'pythons'
).
path
))
envsDirectory
=
new
File
(
System
.
getenv
().
getOrDefault
(
"PYCHARM_PYTHON_VIRTUAL_ENVS"
,
new
File
(
buildDir
,
'envs'
).
path
))
def
djangoTrunkOnly
=
System
.
getProperty
(
"djangoTrunkOnly"
)
?:
false
if
(
System
.
getenv
().
containsKey
(
"PYCHARM_ZIP_REPOSITORY"
))
{
zipRepository
=
new
URL
(
System
.
getenv
().
get
(
"PYCHARM_ZIP_REPOSITORY"
))
shouldUseZipsFromRepository
=
Os
.
isFamily
(
Os
.
FAMILY_WINDOWS
)
...
...
@@ -77,6 +82,12 @@ envs {
}
}
createPython
(
"django_latest"
,
"3.5.4"
,
[
"django"
,
"behave-django"
,
"behave"
],
"python3.5\ndjango\ndjango20\nbehave\nbehave-django\ndjango20"
,
true
)
if
(
djangoTrunkOnly
)
{
return
}
createPython
(
"py2_django11_full"
,
"2.7.15"
,
[
"django==1.11"
,
"tox"
,
"nose"
,
"pytest"
,
"Twisted"
,
"behave"
,
"lettuce>=0.2.22"
,
"unittest2"
,
"teamcity-messages"
,
"django-nose"
]
...
...
@@ -114,7 +125,6 @@ envs {
createPython
(
"pyqt_env"
,
"3.5.4"
,
[
"pyqt5==5.10.1"
],
"pyqt5"
,
true
)
}
createPython
(
"django_latest"
,
"3.5.4"
,
[
"django"
,
"behave-django"
,
"behave"
],
"python3.5\ndjango\ndjango20\nbehave\nbehave-django\ndjango20"
,
true
)
if
(
Os
.
isFamily
(
Os
.
FAMILY_WINDOWS
))
{
// Only windows needs ironPython
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help