From 7b13ebffdd3cffb429b54c0db55f62acfdd2441b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 4 Apr 2020 14:06:23 +0200 Subject: [PATCH] switch to codecov plugin --- .drone.jsonnet | 12 ++++-------- .drone.yml | 13 +++++-------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index dbe5313..664a6ee 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -55,15 +55,11 @@ local PipelineTest = { PythonVersion(pyversion='3.8'), { name: 'codecov', - image: 'python:3.8', - environment: { - PY_COLORS: 1, - CODECOV_TOKEN: { from_secret: 'codecov_token' }, + image: 'plugins/codecov', + settings: { + token: { from_secret: 'codecov_token' }, + required: true, }, - commands: [ - 'pip install codecov', - 'codecov --required', - ], depends_on: [ 'python27', 'python35', diff --git a/.drone.yml b/.drone.yml index 30e06b4..e202188 100644 --- a/.drone.yml +++ b/.drone.yml @@ -87,14 +87,11 @@ steps: - clone - name: codecov - image: python:3.8 - commands: - - pip install codecov - - codecov --required - environment: - CODECOV_TOKEN: + image: plugins/codecov + settings: + required: true + token: from_secret: codecov_token - PY_COLORS: 1 depends_on: - python27 - python35 @@ -306,6 +303,6 @@ depends_on: --- kind: signature -hmac: 0ac85b54a6ded93501f7b752a640e7a0fffc7bca700473c850d767d2cc5dda87 +hmac: d201c1b56b91f50f5992cdbdfbde2d32829dd4cac836b697933d1b0876316153 ...