diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8001d5ba801e4e08d74d8351d961711d2754756f..26128c3f6478a7e1ddd13de778d52d0fb123c62c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,40 +1,8 @@ image: sphinxdoc/sphinx:latest stages: - - lint - - todo_check - 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: stage: pages script: