Commit 09d51d06 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍

Use tox for testing

parent b7b75d69
Pipeline #13057 passed with stage
in 39 seconds
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'
# Common requirements for running the test suite
ldap3
coverage==4.3.4
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment