From 6369b5ddb6e4463bf056da2f88db51ed262ccfd7 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 21 Jun 2022 09:54:52 +0200 Subject: re-enable tests and docs in CI --- .gitlab-ci.yml | 60 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08d8d86..4c9b711 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ variables: stages: - build -# - test + - test - docs - publish @@ -21,35 +21,35 @@ build:archlinux: paths: - dist/* -#test:archlinux: -# stage: test -# image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest" -# script: -# - pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' -# dependencies: -# - build:archlinux -# cache: -# key: test-image-cache -# paths: -# - gerbonara/tests/image_cache/*.svg -# - gerbonara/tests/image_cache/*.png -# 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: -# - sphinx-build -E docs docs/_build -# dependencies: -# - build:archlinux -# artifacts: -# name: "docs-gerbonara-$CI_COMMIT_REF_NAME" -# paths: -# - docs/_build +test:archlinux: + stage: test + image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest" + script: + - pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' + dependencies: + - build:archlinux + cache: + key: test-image-cache + paths: + - gerbonara/tests/image_cache/*.svg + - gerbonara/tests/image_cache/*.png + 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: + - sphinx-build -E docs docs/_build + dependencies: + - build:archlinux + artifacts: + name: "docs-gerbonara-$CI_COMMIT_REF_NAME" + paths: + - docs/_build publish:gerbonara: stage: publish -- cgit