24 lines
673 B
YAML
24 lines
673 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
|
|
go mod vendor
|
|
make 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
|