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

27 lines
782 B
YAML
Raw Normal View History

2019-03-03 14:19:09 +00:00
image: archlinux
2019-06-08 16:13:49 +00:00
secrets:
- 36f65f02-9e26-497e-94d7-f1cd8ba3ef7a
2019-03-03 14:19:09 +00:00
packages:
- go
sources:
- https://github.com/go-ap/activitystreams
environment:
GO111MODULE: 'on'
tasks:
- setup: |
cd activitystreams && go mod download
- tests: |
cd activitystreams
go test -v ./...
2019-06-08 16:13:49 +00:00
- coverage: |
set -a +x
source ~/.code-cov.sh
cd activitystreams
go test -cover -coverprofile activitystreams.coverprofile ./...
GIT_SHA=$(git rev-parse --verify HEAD)
GIT_BRANCH=$(git name-rev --name-only HEAD)
curl -X POST \
--data-binary @activitystreams.coverprofile \
-H 'Accept: application/json' \
"https://codecov.io/upload/v2?commit=${GIT_SHA}&token=${STREAMS_TOKEN}&branch=${GIT_BRANCH}&service=custom"