Fix CI to run all Django versions #20
2 changed files with 25 additions and 6 deletions
|
@ -3,13 +3,16 @@ image: python
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/vendor/pip"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- vendor/apt
|
- vendor
|
||||||
- .tox
|
- .tox
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir -p vendor/apt
|
- mkdir -p vendor/{apt,pip}
|
||||||
# http://www.python-ldap.org/en/latest/installing.html
|
# http://www.python-ldap.org/en/latest/installing.html
|
||||||
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq build-essential python2.7-dev python3-dev libldap2-dev libsasl2-dev
|
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq build-essential python2.7-dev python3-dev libldap2-dev libsasl2-dev
|
||||||
- pip install tox
|
- pip install tox
|
||||||
|
@ -17,18 +20,31 @@ before_script:
|
||||||
python27:
|
python27:
|
||||||
image: python:2.7
|
image: python:2.7
|
||||||
stage: test
|
stage: test
|
||||||
script: tox -e py27
|
script:
|
||||||
|
- tox -e django18-py27
|
||||||
|
- tox -e django19-py27
|
||||||
|
- tox -e django110-py27
|
||||||
|
- tox -e django111-py27
|
||||||
|
|
||||||
python34:
|
python34:
|
||||||
image: python:3.4
|
image: python:3.4
|
||||||
stage: test
|
stage: test
|
||||||
script: tox -e py34
|
script:
|
||||||
|
- tox -e django18-py34
|
||||||
|
- tox -e django19-py34
|
||||||
|
- tox -e django110-py34
|
||||||
|
- tox -e django111-py34
|
||||||
|
- tox -e django20-py34
|
||||||
|
|
||||||
python35:
|
python35:
|
||||||
image: python:3.5
|
image: python:3.5
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- tox -e py35
|
- tox -e django18-py35
|
||||||
|
- tox -e django19-py35
|
||||||
|
- tox -e django110-py35
|
||||||
|
- tox -e django111-py35
|
||||||
|
- tox -e django20-py35
|
||||||
- tox -e cov_combine
|
- tox -e cov_combine
|
||||||
# Catch coverage here. Python3.5 supports more Django versions.
|
# Catch coverage here. Python3.5 supports more Django versions.
|
||||||
# For GitLab, keep this commented.
|
# For GitLab, keep this commented.
|
||||||
|
@ -37,7 +53,9 @@ python35:
|
||||||
python36:
|
python36:
|
||||||
image: python:3.6
|
image: python:3.6
|
||||||
stage: test
|
stage: test
|
||||||
script: tox -e py36
|
script:
|
||||||
|
- tox -e django111-py36
|
||||||
|
- tox -e django20-py36
|
||||||
|
|
||||||
flake8:
|
flake8:
|
||||||
image: python:3.6
|
image: python:3.6
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -1,4 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
|
# Update .gitlab-ci.yml if you change the Django/Python matrix
|
||||||
envlist =
|
envlist =
|
||||||
django{18,19,110}-py{27,34,35},
|
django{18,19,110}-py{27,34,35},
|
||||||
django111-py{27,34,35,36},
|
django111-py{27,34,35,36},
|
||||||
|
|
Loading…
Reference in a new issue