Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fountain
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
urz-django
fountain
Commits
09d51d06
Commit
09d51d06
authored
Nov 28, 2017
by
Daniel Klaffenbach
🐍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use tox for testing
parent
b7b75d69
Pipeline
#13057
passed with stage
in 39 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
43 deletions
+60
-43
.gitlab-ci.yml
.gitlab-ci.yml
+32
-40
tests/requirements-common.txt
tests/requirements-common.txt
+0
-3
tox.ini
tox.ini
+28
-0
No files found.
.gitlab-ci.yml
View file @
09d51d06
py27_django18
:
script
:
-
"
virtualenv-2.7
./py27_django18"
-
"
source
./py27_django18/bin/activate"
-
"
pip
install
-r
./tests/requirements-common.txt
-U"
-
"
pip
install
-U
'Django>=1.8,<1.9'"
-
"
python
./runtests.py"
py27_django19
:
script
:
-
"
virtualenv-2.7
./py27_django19"
-
"
source
./py27_django19/bin/activate"
-
"
pip
install
-r
./tests/requirements-common.txt
-U"
-
"
pip
install
-U
'Django>=1.9,<1.10'"
-
"
python
./runtests.py"
py27_django110
:
script
:
-
"
virtualenv-2.7
./py27_django110"
-
"
source
./py27_django110/bin/activate"
-
"
pip
install
-r
./tests/requirements-common.txt
-U"
-
"
pip
install
-U
'Django>=1.10,<1.11'"
-
"
python
./runtests.py"
py27_django111
:
script
:
-
"
virtualenv-2.7
./py27_django111"
-
"
source
./py27_django111/bin/activate"
-
"
pip
install
-r
./tests/requirements-common.txt
-U"
-
"
pip
install
-U
'Django>=1.11,<1.12'"
-
"
python
./runtests.py"
py34_django111
:
script
:
-
"
virtualenv-3.4
./py34_django111"
-
"
source
./py34_django111/bin/activate"
-
"
pip
install
-r
./tests/requirements-common.txt
-U"
-
"
pip
install
-U
'Django>=1.11,<1.12'"
-
"
coverage
run
./runtests.py"
-
"
./coverage-report.py"
stages
:
-
test
before_script
:
-
python3.6 -m venv $HOME/tox
-
$HOME/tox/bin/pip install tox
py27-django18
:
stage
:
test
script
:
$HOME/tox/bin/tox -e 'py27-django18'
py27-django110
:
stage
:
test
script
:
$HOME/tox/bin/tox -e 'py27-django110'
py27-django111
:
stage
:
test
script
:
$HOME/tox/bin/tox -e 'py27-django111'
py36-django18
:
stage
:
test
script
:
$HOME/tox/bin/tox -e 'py36-django18'
py36-django110
:
stage
:
test
script
:
$HOME/tox/bin/tox -e 'py36-django110'
py36-django111
:
stage
:
test
script
:
$HOME/tox/bin/tox -e 'py36-django111'
tests/requirements-common.txt
deleted
100644 → 0
View file @
b7b75d69
# Common requirements for running the test suite
ldap3
coverage==4.3.4
tox.ini
0 → 100644
View file @
09d51d06
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
skipsdist
=
true
envlist
=
py{27,36}-django{18,110,111}
[testenv]
#alwayscopy = True
commands
=
coverage erase
coverage
run
./runtests.py
./coverage-report.py
deps
=
coverage
lxml
python-dateutil
ldap3
django18:
Django
>=
1.8,
<
1.9
django110:
Django
>=
1.10,
<
1.11
django111:
Django
>=
1.11,
<
2
setenv
=
DJANGO_LIVE_TEST_SERVER_ADDRESS
=
localhost:9000-9200
Write
Preview
Markdown
is supported
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