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 - flake8 --max-line-length 100 bin/app-json.py
- name: run unit tests - name: run unit tests
image: decentral1se/docker-dind-bats-kcov image: bats/bats
commands: commands:
- bats tests - 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 - name: notify rocket chat
image: plugins/slack image: plugins/slack
settings: settings:
@ -43,7 +29,6 @@ steps:
when: when:
status: status:
- failure - failure
trigger: trigger:
branch: branch:
- main - main

View File

@ -1,7 +1,6 @@
# abra # abra
[![Build Status](https://drone.autonomic.zone/api/badges/coop-cloud/abra/status.svg)](https://drone.autonomic.zone/coop-cloud/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 > https://coopcloud.tech

View File

@ -1,4 +1,4 @@
.PHONY: test shellcheck docopt kcov codecov release-installer .PHONY: test shellcheck docopt release-installer
test: test:
@sudo DOCKER_CONTEXT=default docker run \ @sudo DOCKER_CONTEXT=default docker run \
@ -7,7 +7,7 @@ test:
-d \ -d \
--name=abra-test-dind \ --name=abra-test-dind \
-e DOCKER_TLS_CERTDIR="" \ -e DOCKER_TLS_CERTDIR="" \
decentral1se/docker-dind-bats-kcov bats/bats \
@DOCKER_CONTEXT=default sudo docker exec \ @DOCKER_CONTEXT=default sudo docker exec \
-it \ -it \
abra-test-dind \ abra-test-dind \
@ -32,19 +32,6 @@ docopt:
fi fi
.venv/bin/docopt.sh abra .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: release-installer:
@DOCKER_CONTEXT=swarm.autonomic.zone \ @DOCKER_CONTEXT=swarm.autonomic.zone \
docker stack rm abra-installer-script && \ docker stack rm abra-installer-script && \