forked from tikv/pd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
29 lines (28 loc) · 811 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
version: 2
jobs:
build:
docker:
- image: golang:1.12
working_directory: /go/src/github.com/pingcap/pd
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