Skip to content

Commit 9a408a7

Browse files
committed
Update circle config
1 parent 2c214f2 commit 9a408a7

File tree

2 files changed

+41
-26
lines changed

2 files changed

+41
-26
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

circle.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)