Skip to content
Snippets Groups Projects
Commit 5ddb43da authored by Leon Michel Gorißen's avatar Leon Michel Gorißen
Browse files

Update .gitlab-ci.yml file

parent c0c10b68
No related branches found
No related tags found
No related merge requests found
image: sphinxdoc/sphinx:latest image: sphinxdoc/sphinx:latest
stages: stages:
- lint
- todo_check
- pages - pages
lint:
stage: lint
image: python:3.10
before_script:
- pip install black isort ruff
script:
- ruff check . --fix
- ruff format .
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
todo_check:
stage: todo_check
image: python:3.10
before_script:
- apt-get update
- apt-get install -y git
script:
- rm -f TODOs
- git ls-files | xargs grep -H -n -E 'TODO|FIXME' --exclude='TODOs' --exclude='.gitlab-ci.yml' > TODOs
- git config --global user.email "$GITLAB_USER_EMAIL"
- git config --global user.name "$GITLAB_USER_NAME"
- git add TODOs
- git commit -m "Update TODOs [ci skip]"
- - git push https://CI_JOB_TOKEN:${CI_JOB_TOKEN}@git-ce.rwth-aachen.de/iop/workstreams/ws.a3/franka_wwl_demonstrator.git HEAD:$CI_COMMIT_REF_NAME
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: '$CI_COMMIT_MESSAGE !~ /\[ci skip\]/'
pages: pages:
stage: pages stage: pages
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment