Test new CI images with pull request #17

Merged
olofvndrhr merged 1 commit from dev into master 2022-06-23 14:23:49 +02:00
3 changed files with 11 additions and 11 deletions

View file

@ -21,7 +21,7 @@ pipeline:
when: when:
#branch: master #branch: master
event: tag event: tag
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- hatch build - hatch build
@ -31,7 +31,7 @@ pipeline:
when: when:
#branch: master #branch: master
event: tag event: tag
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
secrets: secrets:
- source: pypi_username - source: pypi_username

View file

@ -21,7 +21,7 @@ pipeline:
when: when:
branch: master branch: master
event: pull_request event: pull_request
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- hatch build - hatch build
@ -31,7 +31,7 @@ pipeline:
# when: # when:
# branch: master # branch: master
# event: pull_request # event: pull_request
# image: cr.44net.ch/drone-plugins/test:1-linux-amd64 # image: cr.44net.ch/ci-plugins/tests:1-linux-amd64
# pull: true # pull: true
# commands: # commands:
# - tox # - tox
@ -41,7 +41,7 @@ pipeline:
# when: # when:
# branch: master # branch: master
# event: pull_request # event: pull_request
# image: cr.44net.ch/drone-plugins/test:1-linux-arm64 # image: cr.44net.ch/ci-plugins/tests:1-linux-arm64
# pull: true # pull: true
# commands: # commands:
# - tox # - tox

View file

@ -12,35 +12,35 @@ pipeline:
# check code style - shell # check code style - shell
test-shfmt: test-shfmt:
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- shfmt -d -i 4 -bn -ci -sr . - shfmt -d -i 4 -bn -ci -sr .
# check code style - python # check code style - python
test-black: test-black:
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- black --check --diff . - black --check --diff .
# check imports - python # check imports - python
test-isort: test-isort:
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- isort --check-only --diff . - isort --check-only --diff .
# check static typing - python # check static typing - python
test-mypy: test-mypy:
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- mypy --install-types --non-interactive mangadlp/ - mypy --install-types --non-interactive mangadlp/
# test code and generate coverage report # test code and generate coverage report
test-coverage-pytest: test-coverage-pytest:
image: cr.44net.ch/drone-plugins/test image: cr.44net.ch/ci-plugins/tests
pull: true pull: true
commands: commands:
- pip install -r requirements.txt - pip install -r requirements.txt
@ -52,7 +52,7 @@ pipeline:
sonarqube-analysis: sonarqube-analysis:
when: when:
branch: master branch: master
image: cr.44net.ch/drone-plugins/sonarqube image: cr.44net.ch/ci-plugins/sonar-scanner
pull: true pull: true
settings: settings:
sonar_host: https://sonarqube.44net.ch sonar_host: https://sonarqube.44net.ch