File tree Expand file tree Collapse file tree 2 files changed +41
-26
lines changed Expand file tree Collapse file tree 2 files changed +41
-26
lines changed Original file line number Diff line number Diff line change 1+ restore_registry : &RESTORE_REGISTRY
2+ restore_cache :
3+ key : registry
4+
5+ save_registry : &SAVE_REGISTRY
6+ save_cache :
7+ key : registry-{{ .BuildNum }}
8+ paths :
9+ - /usr/local/cargo/registry/index
10+
11+ deps_key : &DEPS_KEY
12+ key : deps-1.19.0-{{ checksum "Cargo.lock" }}-2
13+
14+ restore_deps : &RESTORE_DEPS
15+ restore_cache :
16+ << : *DEPS_KEY
17+
18+ save_deps : &SAVE_DEPS
19+ save_cache :
20+ << : *DEPS_KEY
21+ paths :
22+ - target
23+ - /usr/local/cargo/registry/cache
24+
25+ version : 2
26+ jobs :
27+ build :
28+ working_directory : ~/build
29+ docker :
30+ - image : rust:1.19.0
31+ - image : postgres:10.0
32+ environment :
33+ POSTGRES_PASSWORD : password
34+ steps :
35+ - checkout
36+ - *RESTORE_REGISTRY
37+ - run : cargo generate-lockfile
38+ - *SAVE_REGISTRY
39+ - *RESTORE_DEPS
40+ - run : cargo test
41+ - *SAVE_DEPS
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments