Use Correct Stages

This commit is contained in:
Price Hiller 2021-10-06 06:49:52 -05:00
parent a234126121
commit 05527bb18f

View File

@ -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