Skip to content
Snippets Groups Projects
Commit 5dcc5826 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Build package

parent a1af65c0
No related branches found
No related tags found
No related merge requests found
image: python:3.9-buster
stages:
- build
- publish
build_dist:
interruptible: true
stage: build
before_script:
- id testuser || adduser --disabled-password --gecos "Test User" testuser
- chown -R testuser .
script:
- if ! [ x$CI_COMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S).${CI_COMMIT_SHORT_SHA} ;
fi
- sudo -u testuser tox -e build
artifacts:
paths:
- dist/
deploy_gitlab:
interruptible: true
stage: publish
script:
- poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S);
- poetry publish -r gitlab
...@@ -6,6 +6,11 @@ authors = ["Dominik George <dominik.george@teckids.org>"] ...@@ -6,6 +6,11 @@ authors = ["Dominik George <dominik.george@teckids.org>"]
license = "CC-BY-SA" license = "CC-BY-SA"
exclude = ["**/.git"] exclude = ["**/.git"]
[[tool.poetry.source]]
name = "gitlab"
url = "https://edugit.org/api/v4/projects/257/packages/pypi/simple"
secondary = true
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">2.0" python = ">2.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment