This repository has been archived on 2022-11-27. You can view files and clone it, but cannot push or open issues or pull requests.
activitypub/.build.yml
2022-03-19 20:30:00 +01:00

25 lines
689 B
YAML

image: archlinux
secrets:
- 72c9ab0b-ed5f-4291-bab7-30b361be94a6
packages:
- go
sources:
- https://github.com/go-ap/activitypub
environment:
GO111MODULE: 'on'
tasks:
- tests: |
cd activitypub
make test
make TEST_TARGET=./tests test
- coverage: |
set -a +x
cd activitypub && make coverage
GIT_SHA=$(git rev-parse --verify HEAD)
GIT_BRANCH=$(git name-rev --name-only HEAD)
source ~/.code-cov.sh
curl -X POST \
--data-binary @activitypub.coverprofile \
-H 'Accept: application/json' \
"https://codecov.io/upload/v2?commit=${GIT_SHA}&token=${PUB_TOKEN}&branch=${GIT_BRANCH}&service=custom" || true