Browse Source

chore: Remove all refs to GNC

pull/8/head
Michaël Costa 3 months ago
parent
commit
5a71bb1b1b
1 changed files with 48 additions and 1 deletions
  1. +48
    -1
      .drone.yml

+ 48
- 1
.drone.yml View File

@ -16,6 +16,53 @@ steps:
exclude:
- tag
- name: Build and publish
image: python
environment:
badge_url: '![Build Status](https://drone.mcos.nc/api/badges/scrippy/scrippy-api/status.svg) ![License](https://img.shields.io/static/v1?label=license&color=orange&message=WTFPL) ![Language](https://img.shields.io/static/v1?label=language&color=informational&message=Python)'
pip_user:
from_secret: pip_user
pip_password:
from_secret: pip_password
commands:
- rm -Rf ./build ./dist ./scrippy_api.egg-info ./scrippy_api/__pycache__ ./tests/__pycache__ ./junit_report.xml ./.coverage
- python -m pip install pip --upgrade
- python -m pip install .[dev]
- git push --set-upstream origin master
- bump2version patch
- VERSION=$(grep ^current_version ./.bumpversion.cfg | cut -d\ -f3);
- SCORE=$(pylint ./scrippy_api/* --exit-zero --confidence=HIGH -f parseable | tail -n2 | head -n1 | cut -d\ -f7)
- sed -i "1c \![version](https://img.shields.io/static/v1?label=version&color=informational&message=$${VERSION}) ![pylint](https://img.shields.io/static/v1?label=pylint&color=informational&message=$${SCORE}) $${badge_url}" README.md
- git add setup.cfg .bumpversion.cfg README.md
- git commit -m 'Increment version [CI SKIP]'
- pypirc -s local -u $${pip_user} -p $${pip_password} -r https://pip.mcos.nc
- python3 setup.py sdist bdist_wheel register -r local upload -r local
- git push origin
depends_on:
- Test
when:
branch: master
event:
exclude:
- pull_request
- tag
- name: Tag
image: python
commands:
- python -m pip install pip --upgrade
- VERSION=$(grep ^current_version ./.bumpversion.cfg | cut -d\ -f3);
- git tag $${VERSION}
- git push origin $${VERSION}
depends_on:
- Build and publish
when:
branch: master
event:
exclude:
- tag
- pull_request
services:
- name: gunicorn
pull: never
@ -25,6 +72,6 @@ services:
---
kind: signature
hmac: 103d00e7d28c0f46440fdbbef64b769cde0a707b859370adf67b907d48bba493
hmac: 1efb85d8fbd17451006dd7295c2e82951767d0791f0032248c018d7cebeacd73
...

Loading…
Cancel
Save