forked from foxcpp/maddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.yml
31 lines (31 loc) · 897 Bytes
/
.build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
image: archlinux
packages:
- go
- pam
- scdoc
- curl
sources:
- https://github.com/foxcpp/maddy
tasks:
- build: |
cd maddy
go build ./...
- test: |
cd maddy
go test ./... -coverprofile=coverage.out -covermode=atomic -race
- integration-test: |
cd maddy/tests
./run.sh
- lint: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.8
cd maddy/
$(go env GOPATH)/bin/golangci-lint run || true
- build-man-pages: |
cd maddy/docs/man
for f in *.scd; do scdoc < $f > /dev/null; done
- upload-coverage: |
export CODECOV_TOKEN=a4598288-4c29-4da7-87cf-64a36e23d245
cd maddy/
bash <(curl https://codecov.io/bash) -f coverage.out -F unit
cd tests/
bash <(curl https://codecov.io/bash) -f coverage.out -F integration