diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 896e55c86b6a2dc24bf245da29cb95ccbe91f5cf..8531b04c01db7f6ef00e5a7ffe30edef89da7eb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,14 +59,11 @@ pylint: - echo undefined > public/badges/$CI_JOB_NAME.score - pip install pylint-gitlab - pip install -r requirements.txt - - ls - - pwd - - pylint rcfile=.pylintrc script: - - pylint --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt + - pylint --ignore=unisportomat/course_scraper --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt - sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score - - pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json - - pylint --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > public/lint/index.html + - pylint --ignore=unisportomat/course_scraper --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json + - pylint --ignore=unisportomat/course_scraper --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > public/lint/index.html after_script: - anybadge --overwrite --label $CI_JOB_NAME --value=$(cat public/badges/$CI_JOB_NAME.score) --file=public/badges/$CI_JOB_NAME.svg 4=red 6=orange 8=yellow 10=green - |