Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
05d8f22b
Commit
05d8f22b
authored
6 years ago
by
Stuart Young
Browse files
Options
Downloads
Patches
Plain Diff
set up tox env var for a11y scripts
parent
44745759
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/accessibility-tests.sh
+14
-12
14 additions, 12 deletions
scripts/accessibility-tests.sh
with
14 additions
and
12 deletions
scripts/accessibility-tests.sh
+
14
−
12
View file @
05d8f22b
...
...
@@ -7,24 +7,26 @@ set -e
#
# Execute the accessibility tests for edx-platform.
#
# If the optional `DJANGO_VERSION` environment variable is defined, it
# specifies which version of Django should be installed when running the
# tests inside a `tox` virtualenv. If undefined, the tests are run using
# the currently active Python environment.
# If the optional `TOX_ENV` environment variable is defined, it
# specifies which version of Python and Django should be installed when
# running the tests inside a `tox` virtualenv. If undefined, the tests are
# run using the currently active Python environment. For more information
# on what versions are supported, check the tox.ini file.
#
###############################################################################
if
[[
$DJANGO_VERSION
==
'1.11'
]]
;
then
TOX
=
"tox -r -e py27-django111 --"
elif
[[
$DJANGO_VERSION
==
'1.10'
]]
;
then
TOX
=
"tox -r -e py27-django110 --"
elif
[[
$DJANGO_VERSION
==
'1.9'
]]
;
then
TOX
=
"tox -r -e py27-django19 --"
else
# if specified tox environment is supported, prepend paver commands
# with tox env invocation
if
[
-z
${
TOX_ENV
+x
}
]
||
[[
${
TOX_ENV
}
==
'null'
]]
;
then
TOX
=
""
elif
tox
-l
|grep
-q
"
${
TOX_ENV
}
"
;
then
TOX
=
"tox -r -e
${
TOX_ENV
}
--"
else
echo
"
${
TOX_ENV
}
is not currently supported. Please review the"
echo
"tox.ini file to see which environments are supported"
exit
1
fi
echo
"Setting up for accessibility tests..."
source
scripts/jenkins-common.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment