Skip to content

Commit

Permalink
Fix drone syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
gqueiroz committed Mar 25, 2021
1 parent da07e0d commit 8017b46
Showing 1 changed file with 44 additions and 57 deletions.
101 changes: 44 additions & 57 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,65 +7,52 @@
#

kind: pipeline

name: wtss.py

steps:
- name: build

image: python:3.7

environment:
WTSS_EXAMPLE_URL: http://www.esensing.dpi.inpe.br
WTSS_TEST_URL: http://www.esensing.dpi.inpe.br

commands:
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install -e .[tests,docs]
- ./run-tests.sh

- name: coverage

image: plugins/codecov

when:
event:
- push
settings:
token:
from_secret: CODECOV_TOKEN

files:
- coverage.xml
- .coverage

- name: pypi

image: plugins/pypi

settings:
username:
from_secret: pypi_user

password:
from_secret: pypi_pass

repository: https://upload.pypi.org/legacy/

distributions:
- sdist

when:
event:
- tag
- name: build-test
image: python:3.7
environment:
WTSS_EXAMPLE_URL: http://www.esensing.dpi.inpe.br
WTSS_TEST_URL: http://www.esensing.dpi.inpe.br
commands:
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install -e .[tests,docs]
- ./run-tests.sh

- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov_token
files:
- coverage.xml
- .coverage
when:
event:
- push

- name: pypi
image: plugins/pypi
settings:
username:
from_secret: pypi_user
password:
from_secret: pypi_pass
repository: https://upload.pypi.org/legacy/
distributions:
- sdist
when:
event:
- tag

- name: discord-notify
image: brazildatacube/bdc-drone-discord
settings:
webhook:
from_secret: discord_webhook
when:
status:
- failure
- success
image: brazildatacube/bdc-drone-discord
settings:
webhook:
from_secret: discord_webhook
when:
status:
- failure
- success

0 comments on commit 8017b46

Please sign in to comment.