-
Notifications
You must be signed in to change notification settings - Fork 4
/
circle.yml
28 lines (25 loc) · 900 Bytes
/
circle.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
# CircleCI file
# see https://circleci.com/docs/language-go/
machine:
services:
- docker
dependencies:
pre:
- go get -u github.com/alecthomas/gometalinter
override:
- rm -rf ../.go_workspace/src/github.com/Zenika/zenscaler
- ln -s /home/ubuntu/zenscaler ../.go_workspace/src/github.com/Zenika/zenscaler
- go get -v -d -t ./...
- go build --ldflags "-s -w -X github.com/Zenika/zenscaler/core.Version=`git describe --tags --always`" .:
environment:
CGO_ENABLED: 0
GOGC: "off"
- make install:
pwd: ../.go_workspace/src/github.com/Zenika/zenscaler
post:
- gometalinter --install --vendor
test:
override:
- go test -race -v -cover -timeout 120s ./api
- go test -race -v -cover -timeout 120s ./cmd
- gometalinter -j4 --deadline 300s ./...