Skip to content
Snippets Groups Projects
Commit 8021da04 authored by Benedikt's avatar Benedikt
Browse files

changed pipline

parent 5f268402
Branches
No related tags found
No related merge requests found
Pipeline #37473 passed
stages:
- test
- generate_uml
- deploy
variables:
GIT_STRATEGY: fetch
test:
stage: test
......@@ -23,22 +26,18 @@ test:
coverage_format: cobertura
path: coverage.xml
generate_uml:
stage: generate_uml
image: registry.gitlab.com/pipeline-components/pylint:latest
before_script:
#- echo "Acquire::http::Proxy \"$HTTP_PROXY\";" > /etc/apt/apt.conf.d/30proxy
#- echo "Acquire::https::Proxy \"$HTTPS_PROXY\";" >> /etc/apt/apt.conf.d/30proxy
- export HTTP_PROXY="http://webproxy.bs.ptb.de:8080"
- export HTTPS_PROXY="http://webproxy.bs.ptb.de:8080"
- export NO_PROXY="*.ptb.de"
- apt-get update && apt-get install -y graphviz
commit_and_push_coverage:
stage: deploy
image: alpine/git
script:
- apt-get update && apt-get install -y graphviz
- pip install pylint # Ensure pylint is installed for pyreverse
- pip install . # Install your package if necessary
- pyreverse -o svg -p dccQuantsAndTabs . -a 1 -s 1 --output-directory ./doc/umlDiagrams
- ls -la ./doc/umlDiagrams
artifacts:
paths:
- doc/umlDiagrams/
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- git fetch --all
- git checkout -b coverage-report || git checkout coverage-report
- rm -rf * # Clear the branch (optional: handle with care)
- cp -r cov_html/* .
- git add .
- git commit -m "Update coverage report" || echo "No changes to commit"
- git push --set-upstream origin coverage-report
only:
- master
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment