diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..4bb5bf8773be0c78df614b241d0617f3b9fa6e67 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,46 @@ +# This file is a template, and might need editing before it works on your project. +# Official language image. Look for the different tagged releases at: +# https://hub.docker.com/r/library/python/tags/ +image: python:latest + +before_script: + - apt-get update -q -y + - python --version + - pip install -e ".[dev]" + +stages: + - Static Analysis + - Test + - Coverage + - Packaging + +flake8: + stage: Static Analysis + script: + - make flake8 + +pylint: + stage: Static Analysis + script: + - make pylint + +pycodestyle: + stage: Static Analysis + script: + - make pycodestyle + +pydocstyle: + stage: Static Analysis + script: + - make pydocstyle + +test: + stage: Test + script: + - make pytest + +coverage: + stage: Coverage + coverage: '/TOTAL.+?(\d+)%/' + script: + - make coverage