Drop kcov/codecov for now, use upstream bats

This commit is contained in:
decentral1se 2021-06-03 09:07:55 +02:00
parent 542cf793d2
commit ff309182ea
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
3 changed files with 3 additions and 32 deletions

View File

@ -14,24 +14,10 @@ steps:
- flake8 --max-line-length 100 bin/app-json.py
- name: run unit tests
image: decentral1se/docker-dind-bats-kcov
image: bats/bats
commands:
- bats tests
- name: collect code coverage
failure: ignore # until we fix this
image: decentral1se/docker-dind-bats-kcov
commands:
- kcov . bats tests || true
- name: send code coverage report to codecov
failure: ignore # until we fix this
image: plugins/codecov
settings:
token:
from_secret: codecov_token
required: true
- name: notify rocket chat
image: plugins/slack
settings:
@ -43,7 +29,6 @@ steps:
when:
status:
- failure
trigger:
branch:
- main

View File

@ -1,7 +1,6 @@
# abra
[![Build Status](https://drone.autonomic.zone/api/badges/coop-cloud/abra/status.svg)](https://drone.autonomic.zone/coop-cloud/abra)
[![codecov](https://codecov.io/gh/Autonomic-Cooperative/abra/branch/main/graph/badge.svg?token=aX3I5NMRsj)](undefined)
> https://coopcloud.tech

View File

@ -1,4 +1,4 @@
.PHONY: test shellcheck docopt kcov codecov release-installer
.PHONY: test shellcheck docopt release-installer
test:
@sudo DOCKER_CONTEXT=default docker run \
@ -7,7 +7,7 @@ test:
-d \
--name=abra-test-dind \
-e DOCKER_TLS_CERTDIR="" \
decentral1se/docker-dind-bats-kcov
bats/bats \
@DOCKER_CONTEXT=default sudo docker exec \
-it \
abra-test-dind \
@ -32,19 +32,6 @@ docopt:
fi
.venv/bin/docopt.sh abra
kcov:
@docker run \
-it \
--rm \
-v $$(pwd):/workdir \
kcov/kcov:latest \
sh -c "kcov /workdir/coverage /workdir/abra || true"
codecov: SHELL:=/bin/bash
codecov:
@bash <(curl -s https://codecov.io/bash) \
-s coverage -t $$(pass show hosts/swarm.autonomic.zone/drone/codecov/token)
release-installer:
@DOCKER_CONTEXT=swarm.autonomic.zone \
docker stack rm abra-installer-script && \