Update .gitlab-ci.yml file
This commit is contained in:
parent
b6e2540399
commit
713697b32d
@ -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
|
||||
- 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user