-
Notifications
You must be signed in to change notification settings - Fork 168
/
.travis.yml
31 lines (22 loc) · 968 Bytes
/
.travis.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
language: go
sudo: required
services:
- docker
go:
- 1.13
git:
depth: 1
go_import_path: github.com/caicloud/cyclone
before_install:
- go get github.com/mattn/goveralls
- go get github.com/go-playground/overalls
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.20.1
install:
- go build -mod=vendor -o cyclone-server github.com/caicloud/cyclone/cmd/server
- go build -mod=vendor -o workflow-controller github.com/caicloud/cyclone/cmd/workflow/controller
- go build -mod=vendor -o workflow-coordinator github.com/caicloud/cyclone/cmd/workflow/coordinator
script:
- overalls -project=github.com/caicloud/cyclone -covermode=count -debug -ignore=Godeps,vendor,tests,.git,scripts,node_modules,docs,tools,build,hack,manifests,release,web,pkg/k8s,pkg/apis
- golangci-lint run
after_success:
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=overalls.coverprofile