From 713697b32d5879f526e4b21ef61bbc162a288d9e Mon Sep 17 00:00:00 2001 From: Isaac Riley Date: Tue, 7 May 2024 07:40:52 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 49 ++++++++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ecefd13..4331c70 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,21 +1,32 @@ -# The Docker image that will be used to build your app -image: python:3.10 +include: + - project: "Gitlab/gitlab" + ref: 0.3.0 + file: "/ci-templates/research/dvc-versioning-build-release.gitlab-ci.yml" + +variables: + NEXUS_PROJECT_DIR: red + IMAGENAME: "${CI_PROJECT_NAME}" # Functions that should be executed before the build script is run -before_script: - - pip install poetry - - poetry config virtualenvs.in-project true - - poetry install -pages: - script: - - cp ./README.md ./docs/source/README.md && cp -r ./data ./docs/source/data/ - - poetry run sphinx-apidoc ./src -o ./docs/source/modules --no-toc - --module-first --follow-links --separate --force - - poetry run sphinx-build -b html docs/source/ public/ -E -a - artifacts: - paths: - # The folder that contains the files to be exposed at the Page URL - - public + +################################# +# temp. disable integration tests, b/c they don't cover the CV analysis case yet +trigger integration tests: rules: - # This ensures that only pushes to the default branch will trigger - # a pages deploy - - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH \ No newline at end of file + - when: never + +release build: + stage: release + needs: + - job: set custom version + artifacts: true + optional: true + - job: calculate patch version + artifacts: true + optional: true + - job: calculate minor version + artifacts: true + optional: true + - job: build docker nexus + artifacts: true + - job: pages + artifacts: true