From fb69e798578559f9adc69c7be90b9caa3f081fa4 Mon Sep 17 00:00:00 2001 From: Tamas Kiss <tamas.kiss@prezi.com> Date: Mon, 1 Jun 2020 19:03:30 +0200 Subject: [PATCH] Gitlab CI added --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0d883d6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +image: registry.kszk.bme.hu/baseimg/python-tools + +stages: + - Init + - Testing + - Release + +pip: + stage: Init + script: + - python --version + - pip install -e . + +flake8: + stage: Testing + script: + - flake8 src + +pytest: + stage: Testing + script: + - pip install .[tests] + - py.test tests + +release: + only: + - master + - tags + stage: Release + script: + - python setup.py sdist bdist_wheel + - python setup.py upload --repository https://nexus.kszk.bme.hu/repository/pypi/ \ No newline at end of file -- GitLab