summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-06 21:06:23 +0100
committerjaseg <git@jaseg.de>2022-02-06 21:06:23 +0100
commit99b51e1eced9776585c0111636504dba634e941f (patch)
tree7fc737d541277a380d01cfc8171a4922065ed4d9
parent4e1874e7d8a8d4a8313452e08ef5fa28aa01be55 (diff)
downloadgerbonara-0.9.3.tar.gz
gerbonara-0.9.3.tar.bz2
gerbonara-0.9.3.zip
CI: WIPv0.9.3
-rw-r--r--.gitlab-ci.yml28
1 files changed, 21 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6dd8464..09e8316 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,11 +4,12 @@ variables:
stages:
- build
- test
+ - docs
- publish
-build:debian_10:
+build:archlinux:
stage: build
- image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
+ image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
variables:
GIT_SUBMODULE_STRATEGY: none
script:
@@ -18,32 +19,45 @@ build:debian_10:
paths:
- dist/*.whl
-test:debian_10:
+test:archlinux:
stage: test
- image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
+ image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
script:
- pip3 install --user pytest
- ~/.local/bin/pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*'
dependencies:
- - build:debian_10
+ - build:archlinux
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara"
when: on_failure
paths:
- 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:
stage: publish
variables:
GIT_SUBMODULE_STRATEGY: none
- image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
+ image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
cache: {}
script:
- pip install -U --user twine
- export TWINE_USERNAME TWINE_PASSWORD
- ~/.local/bin/twine upload dist/*
dependencies:
- - build:debian_10
+ - build:archlinux
only:
- /^v.*$/