Setup GitLab CI
This commit is contained in:
parent
28a8127d35
commit
c0059bea80
1 changed files with 49 additions and 0 deletions
49
.gitlab-ci.yml
Normal file
49
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
image: python
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- vendor/apt
|
||||
- .tox
|
||||
|
||||
before_script:
|
||||
- mkdir -p vendor/apt
|
||||
# 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 py27
|
||||
|
||||
python34:
|
||||
image: python:3.4
|
||||
stage: test
|
||||
script: tox -e py34
|
||||
|
||||
python35:
|
||||
image: python:3.5
|
||||
stage: test
|
||||
script:
|
||||
- tox -e py35
|
||||
- tox -e cov_combine
|
||||
# Catch coverage here. Python3.5 supports more Django versions.
|
||||
coverage: '/TOTAL.*\s(\d+\.\d+)\%$/'
|
||||
|
||||
python36:
|
||||
image: python:3.6
|
||||
stage: test
|
||||
script: tox -e py36
|
||||
|
||||
flake8:
|
||||
image: python:3.6
|
||||
stage: test
|
||||
script: tox -e flake8
|
||||
|
||||
isort:
|
||||
image: python:3.6
|
||||
stage: test
|
||||
script: tox -e isort
|
Loading…
Reference in a new issue