Use Correct Stages
This commit is contained in:
parent
a234126121
commit
05527bb18f
@ -21,7 +21,7 @@ stages: # List of stages for jobs, and their order of execution
|
|||||||
# - echo "Code coverage is 90%"
|
# - echo "Code coverage is 90%"
|
||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
stage: Static Analysis
|
stage: Test
|
||||||
before_script:
|
before_script:
|
||||||
- pip install pylint-exit anybadge
|
- pip install pylint-exit anybadge
|
||||||
script:
|
script:
|
||||||
@ -34,20 +34,6 @@ pylint:
|
|||||||
paths:
|
paths:
|
||||||
- ./pylint/
|
- ./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.
|
build-job: # This job runs in the build stage, which runs first.
|
||||||
stage: Build Wheel
|
stage: Build Wheel
|
||||||
|
Loading…
Reference in New Issue
Block a user