diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 43b276a..c575904 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ stages: # List of stages for jobs, and their order of execution # - echo "Code coverage is 90%" pylint: - stage: Static Analysis + stage: Test before_script: - pip install pylint-exit anybadge script: @@ -34,20 +34,6 @@ pylint: paths: - ./pylint/ -lint-test-job: # This job also runs in the test stage. - stage: test - before_script: - - pip install pylint pylint-exit anybadge - script: - - mkdir ./pylint - - pylint --output-format=text . | tee ./pylint/pylint.log || pylint-exit $? - - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log) - - anybadge --label=Pylint --file=pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green - - echo "Pylint score is $PYLINT_SCORE" - artifacts: - paths: - - ./pylint/ - build-job: # This job runs in the build stage, which runs first. stage: Build Wheel