django-allauth-ens/.gitlab-ci.yml

68 lines
1.3 KiB
YAML
Raw Normal View History

2018-09-29 23:14:57 +02:00
image: python
stages:
- test
2018-10-06 12:11:08 +02:00
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/vendor/pip"
2018-09-29 23:14:57 +02:00
cache:
paths:
2018-10-06 12:11:08 +02:00
- vendor
2018-09-29 23:14:57 +02:00
before_script:
2018-10-06 12:11:08 +02:00
- mkdir -p vendor/{apt,pip}
2018-09-29 23:14:57 +02:00
# 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
- pip install tox
python27:
image: python:2.7
stage: test
script:
- tox -e django18-py27
- tox -e django19-py27
- tox -e django110-py27
- tox -e django111-py27
2018-09-29 23:14:57 +02:00
python34:
image: python:3.4
stage: test
script:
- tox -e django18-py34
- tox -e django19-py34
- tox -e django110-py34
- tox -e django111-py34
- tox -e django20-py34
2018-09-29 23:14:57 +02:00
python35:
image: python:3.5
stage: test
script:
- tox -e django18-py35
- tox -e django19-py35
- tox -e django110-py35
- tox -e django111-py35
- tox -e django20-py35
2018-09-29 23:14:57 +02:00
- tox -e cov_combine
# Catch coverage here. Python3.5 supports more Django versions.
# For GitLab, keep this commented.
# coverage: '/TOTAL.*\s(\d+\.\d+)\%$/'
2018-09-29 23:14:57 +02:00
python36:
image: python:3.6
stage: test
script:
- tox -e django111-py36
- tox -e django20-py36
2018-09-29 23:14:57 +02:00
flake8:
image: python:3.6
stage: test
script: tox -e flake8
isort:
image: python:3.6
stage: test
script: tox -e isort