From 3187862524c51663b699da64cd3d8675d51db07a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 4 Apr 2020 14:16:11 +0200 Subject: [PATCH] switch back to python codecov --- .drone.jsonnet | 14 +++++++++----- .drone.yml | 23 +++++++++++++---------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 664a6ee..acc96f0 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -7,7 +7,7 @@ local PythonVersion(pyversion='2.7') = { commands: [ 'pip install -r test-requirements.txt -qq', 'pip install -qq .', - 'pytest --cov=corenetworks/ --no-cov-on-fail', + 'pytest --cov=corenetworks --no-cov-on-fail', ], depends_on: [ 'clone', @@ -55,11 +55,15 @@ local PipelineTest = { PythonVersion(pyversion='3.8'), { name: 'codecov', - image: 'plugins/codecov', - settings: { - token: { from_secret: 'codecov_token' }, - required: true, + image: 'python:3.8', + environment: { + PY_COLORS: 1, + CODECOV_TOKEN: { from_secret: 'codecov_token' }, }, + commands: [ + 'pip install codecov -qq', + 'codecov --required -X gcov', + ], depends_on: [ 'python27', 'python35', diff --git a/.drone.yml b/.drone.yml index e202188..671eb2d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -47,7 +47,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -58,7 +58,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -69,7 +69,7 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: @@ -80,18 +80,21 @@ steps: commands: - pip install -r test-requirements.txt -qq - pip install -qq . - - pytest --cov=corenetworks/ --no-cov-on-fail + - pytest --cov=corenetworks --no-cov-on-fail environment: PY_COLORS: 1 depends_on: - clone - name: codecov - image: plugins/codecov - settings: - required: true - token: + image: python:3.8 + commands: + - pip install codecov -qq + - codecov --required -X gcov + environment: + CODECOV_TOKEN: from_secret: codecov_token + PY_COLORS: 1 depends_on: - python27 - python35 @@ -303,6 +306,6 @@ depends_on: --- kind: signature -hmac: d201c1b56b91f50f5992cdbdfbde2d32829dd4cac836b697933d1b0876316153 +hmac: 168f1459ba1a231a59ac9439dc7d93f97c3c3abc45d741d40cfff61e9bd0a0d0 ...