-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
31 lines (30 loc) · 848 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
29
30
31
version: 2
jobs:
build:
docker:
- image: golang:1.12
working_directory: /go/src/github.com/pingcap/pd
environment:
GOFLAGS: -p=8
steps:
- checkout
- restore_cache:
name: "Restore Build Cache"
key: go-build-v1-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
- restore_cache:
name: "Restore Tools"
key: tools-v1-{{ checksum "tools.json" }}
- run:
name: "Build & Test"
command: make ci
- save_cache:
name: "Save Build Cache"
key: go-build-v1-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
paths:
- /root/.cache/go-build
- /go/pkg/mod
- save_cache:
name: "Save Tools"
key: tools-v1-{{ checksum "tools.json" }}
paths:
- .retools