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

25 lines
727 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:
2019-07-06 18:16:05 +00:00
- 72c9ab0b-ed5f-4291-bab7-30b361be94a6
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: |
2019-06-11 11:53:21 +00:00
cd activitystreams && make test
2019-06-08 16:13:49 +00:00
- coverage: |
set -a +x
2019-06-11 11:53:21 +00:00
cd activitystreams && make coverage
2019-06-08 16:13:49 +00:00
GIT_SHA=$(git rev-parse --verify HEAD)
GIT_BRANCH=$(git name-rev --name-only HEAD)
2019-06-11 11:53:21 +00:00
source ~/.code-cov.sh
2019-06-08 16:13:49 +00:00
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" || true