forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
77 lines (73 loc) · 2.28 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[tox]
envlist = py{27,35,36,37}-django{111,20,21}
# This is needed to prevent the lms, cms, and openedx packages inside the "Open
# edX" package (defined in setup.py) from getting installed into site-packages
# where they can get imported, which is bad because those won't even contain
# most of the source code since we don't explicitly add anything to the source
# distribution.
skipsdist=True
# The default toxworkdir is in the source tree (as ".tox/"), but `django-admin
# compilemessages` unconditionally walks the entire directory tree under the
# source root and cannot handle encountering the toxworkdir. So, we un-break
# compilemessages by moving the toxworkdir to the home directory.
toxworkdir={homedir}/edxapp_toxenv
[testenv]
# This ensures "-e ." is installed, so that a link back to the top-level
# edx-platform source directory is installed in site-packages, making
# edx-platform source code importable from python subprocesses. Child
# processes running python code do not import from the current working
# directory without hacking sys.path, but they will inherit the tox virtualenv
# and look in site-packages.
usedevelop=True
setenv =
PYTHONHASHSEED=0
TOXENV={envname}
passenv =
BOK_CHOY_CMS_PORT
BOK_CHOY_HOSTNAME
BOK_CHOY_LMS_PORT
BOKCHOY_HEADLESS
DISABLE_COURSEENROLLMENT_HISTORY
DISPLAY
DJANGO_SETTINGS_MODULE
EDX_PLATFORM_SETTINGS
EDXAPP_TEST_MONGO_HOST
MOZ_HEADLESS
NO_PREREQ_INSTALL
NO_PYTHON_UNINSTALL
NODE_PATH
NODE_VIRTUAL_ENV
NPM_CONFIG_PREFIX
SCRAPY_SETTINGS_MODULE
SELENIUM_BROWSER
SELENIUM_HOST
SELENIUM_PORT
SHARD
SKIP_NPM_INSTALL
SSH_AUTH_SOCK
TARGET_BRANCH
TEST_SUITE
XDIST_GIT_BRANCH
XDIST_GIT_REFSPEC
XDIST_INSTANCE_TYPE
XDIST_NUM_WORKERS
XDIST_REMOTE_NUM_PROCESSES
XDIST_WORKER_AMI
XDIST_WORKER_IAM_PROFILE_ARN
XDIST_WORKER_KEY_NAME
XDIST_WORKER_SECURITY_GROUP
XDIST_WORKER_SUBNET
deps =
django111: -r requirements/edx/django.txt
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
-r requirements/edx/testing.txt
whitelist_externals =
/bin/bash
/usr/bin/curl
/bin/tar
commands =
# Upgrade sqlite to fix crashes during testing.
py27: bash scripts/upgrade_pysqlite.sh
# Now perform testing.
{posargs}