diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..0d883d6afb7f89636bb42f1a6fdde9b177e81239 --- /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