remove tests_pr as it executes twice
This commit is contained in:
parent
ff4c100272
commit
52fd580ba1
2 changed files with 0 additions and 66 deletions
|
@ -6,16 +6,12 @@
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
when:
|
|
||||||
event: [ push, tag, deployment ]
|
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
# check shell scripts with shfmt
|
# check shell scripts with shfmt
|
||||||
test-shfmt:
|
test-shfmt:
|
||||||
when:
|
|
||||||
event: [ push, tag, deployment ]
|
|
||||||
image: 'cr.44net.ch/drone-plugins/test'
|
image: 'cr.44net.ch/drone-plugins/test'
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
|
@ -23,8 +19,6 @@ pipeline:
|
||||||
|
|
||||||
# check python scripts with black
|
# check python scripts with black
|
||||||
test-black:
|
test-black:
|
||||||
when:
|
|
||||||
event: [ push, tag, deployment ]
|
|
||||||
image: 'cr.44net.ch/drone-plugins/test'
|
image: 'cr.44net.ch/drone-plugins/test'
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
|
@ -32,8 +26,6 @@ pipeline:
|
||||||
|
|
||||||
# test code and generate coverage report
|
# test code and generate coverage report
|
||||||
test-coverage-pytest:
|
test-coverage-pytest:
|
||||||
when:
|
|
||||||
event: [ push, tag, deployment ]
|
|
||||||
image: 'cr.44net.ch/drone-plugins/test'
|
image: 'cr.44net.ch/drone-plugins/test'
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
|
@ -46,7 +38,6 @@ pipeline:
|
||||||
sonarqube-analysis:
|
sonarqube-analysis:
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: [ push, tag, deployment ]
|
|
||||||
image: 'cr.44net.ch/drone-plugins/sonarqube'
|
image: 'cr.44net.ch/drone-plugins/sonarqube'
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
##############################
|
|
||||||
# code testing and analysis #
|
|
||||||
#############################
|
|
||||||
# branch: all
|
|
||||||
# event: pull_request
|
|
||||||
|
|
||||||
clone:
|
|
||||||
git:
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
image: woodpeckerci/plugin-git
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
|
|
||||||
# check shell scripts with shfmt
|
|
||||||
test-shfmt:
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
image: 'cr.44net.ch/drone-plugins/test'
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- shfmt -d -i 4 -bn -ci -sr .
|
|
||||||
|
|
||||||
# check python scripts with black
|
|
||||||
test-black:
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
image: 'cr.44net.ch/drone-plugins/test'
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- black --check --diff --color .
|
|
||||||
|
|
||||||
# test code and generate coverage report
|
|
||||||
test-coverage-pytest:
|
|
||||||
when:
|
|
||||||
event: pull_request
|
|
||||||
image: 'cr.44net.ch/drone-plugins/test'
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- coverage erase
|
|
||||||
- coverage run -m pytest --verbose --exitfirst
|
|
||||||
- coverage xml -i
|
|
||||||
|
|
||||||
# analyse code with sonarqube and upload it
|
|
||||||
sonarqube-analysis:
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: pull_request
|
|
||||||
image: 'cr.44net.ch/drone-plugins/sonarqube'
|
|
||||||
pull: true
|
|
||||||
settings:
|
|
||||||
sonar_host: 'https://sonarqube.44net.ch'
|
|
||||||
sonar_token:
|
|
||||||
from_secret: sq-44net-token
|
|
||||||
usingProperties: true
|
|
||||||
|
|
Loading…
Reference in a new issue