diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cffb395 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,128 @@ +before_script: +- pip install tox setuptools + +flake8: + image: "python:2.7" + cache: + key: flake8 + paths: + - .tox/flake8 + script: + - tox -e flake8 + +check_rst: + image: "python:2.7" + cache: + key: check_rst + paths: + - .tox/check_rst + script: + - tox -e check_rst + +py27-django17: + image: "python:2.7" + cache: + key: py27-django17 + paths: + - .tox/py27-django17 + script: + - tox -e py27-django17 + +py27-django18: + image: "python:2.7" + cache: + key: py27-django18 + paths: + - .tox/py27-django18 + script: + - tox -e py27-django18 + +py27-django19: + image: "python:2.7" + cache: + key: py27-django19 + paths: + - .tox/py27-django19 + script: + - tox -e py27-django19 + +py27-django110: + image: "python:2.7" + cache: + key: py27-django110 + paths: + - .tox/py27-django110 + script: + - tox -e py27-django110 + +py34-django17: + image: "python:3.4" + cache: + key: py34-django17 + paths: + - .tox/py34-django17 + script: + - tox -e py34-django17 + +py34-django18: + image: "python:3.4" + cache: + key: py34-django18 + paths: + - .tox/py34-django18 + script: + - tox -e py34-django18 + +py34-django19: + image: "python:3.4" + cache: + key: py34-django19 + paths: + - .tox/py34-django19 + script: + - tox -e py34-django19 + +py34-django110: + image: "python:3.4" + cache: + key: py34-django110 + paths: + - .tox/py34-django110 + script: + - tox -e py34-django110 + +py35-django18: + image: "python:3.5" + cache: + key: py35-django18 + paths: + - .tox/py35-django18 + script: + - tox -e py35-django18 + +py35-django19: + image: "python:3.5" + cache: + key: py35-django19 + paths: + - .tox/py35-django19 + script: + - tox -e py35-django19 + +py35-django110: + image: "python:3.5" + cache: + key: py35-django110 + paths: + - .tox/py35-django110 + script: + - tox -e py35-django110 + +coverage: + image: "python:2.7" + cache: + key: coverage + paths: + - .tox/coverage + script: + - tox -e coverage diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 61c12d2..538767b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,7 @@ Unreleased Added ----- * Add Django 1.10 support +* Add support of gitlab continuous integration Fixed ----- diff --git a/tox.ini b/tox.ini index bf049cd..ca72392 100644 --- a/tox.ini +++ b/tox.ini @@ -135,7 +135,7 @@ deps= codacy-coverage skip_install=True commands= - py.test --cov=cas_server --cov-report xml + py.test --cov=cas_server --cov-report xml --cov-report term python-codacy-coverage -r {toxinidir}/coverage.xml {[post_cmd]commands} whitelist_externals={[post_cmd]whitelist_externals}