modern_python v0.9.3
jaseg 2022-02-06 21:06:23 +01:00
rodzic 4e1874e7d8
commit 99b51e1ece
1 zmienionych plików z 21 dodań i 7 usunięć

Wyświetl plik

@ -4,11 +4,12 @@ variables:
stages: stages:
- build - build
- test - test
- docs
- publish - publish
build:debian_10: build:archlinux:
stage: build stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10" image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
variables: variables:
GIT_SUBMODULE_STRATEGY: none GIT_SUBMODULE_STRATEGY: none
script: script:
@ -18,32 +19,45 @@ build:debian_10:
paths: paths:
- dist/*.whl - dist/*.whl
test:debian_10: test:archlinux:
stage: test stage: test
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10" image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
script: script:
- pip3 install --user pytest - pip3 install --user pytest
- ~/.local/bin/pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' - ~/.local/bin/pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*'
dependencies: dependencies:
- build:debian_10 - build:archlinux
artifacts: artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara" name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara"
when: on_failure when: on_failure
paths: paths:
- gerbonara_test_failures/* - gerbonara_test_failures/*
docs:archlinux:
stage: test
image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
script:
- pip3 install --user sphinx
- ~/.local/bin/sphinx-build -E docs docs/_build
dependencies:
- build:archlinux
artifacts:
name: "docs-gerbonara-$CI_COMMIT_REF_NAME"
paths:
- docs/_build
publish:gerbonara: publish:gerbonara:
stage: publish stage: publish
variables: variables:
GIT_SUBMODULE_STRATEGY: none GIT_SUBMODULE_STRATEGY: none
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10" image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
cache: {} cache: {}
script: script:
- pip install -U --user twine - pip install -U --user twine
- export TWINE_USERNAME TWINE_PASSWORD - export TWINE_USERNAME TWINE_PASSWORD
- ~/.local/bin/twine upload dist/* - ~/.local/bin/twine upload dist/*
dependencies: dependencies:
- build:debian_10 - build:archlinux
only: only:
- /^v.*$/ - /^v.*$/