diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b944115..f14ce1a 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 -# 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 +include: + - project: "Gitlab/gitlab" + ref: 0.3.0 + file: "/ci-templates/research/dvc-versioning-build-release.gitlab-ci.yml" + # file: "/ci-templates/research/versioning-build+azure_model-test-release.gitlab-ci.yml" + +variables: + NEXUS_PROJECT_DIR: red + IMAGENAME: "${CI_PROJECT_NAME}" + +################################# +# 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 + - 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 +################################# +