File tree 1 file changed +10
-13
lines changed
1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change 1
1
restore_registry : &RESTORE_REGISTRY
2
2
restore_cache :
3
3
key : registry
4
-
5
4
save_registry : &SAVE_REGISTRY
6
5
save_cache :
7
6
key : registry-{{ .BuildNum }}
8
7
paths :
9
- - /usr/local/cargo/registry/index
10
-
8
+ - /usr/local/cargo/registry/index
11
9
deps_key : &DEPS_KEY
12
- key : deps-1.19.0-{{ checksum "Cargo.lock" }}
13
-
10
+ key : deps-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
14
11
restore_deps : &RESTORE_DEPS
15
12
restore_cache :
16
13
<< : *DEPS_KEY
17
-
18
14
save_deps : &SAVE_DEPS
19
15
save_cache :
20
16
<< : *DEPS_KEY
21
17
paths :
22
- - target
23
- - /usr/local/cargo/registry/cache
18
+ - target
19
+ - /usr/local/cargo/registry/cache
24
20
25
21
version : 2
26
22
jobs :
27
23
build :
28
24
working_directory : ~/build
29
25
docker :
30
- - image : rust:1.20 .0
26
+ - image : rust:1.21 .0
31
27
environment :
32
28
RUSTFLAGS : -D warnings
33
29
- image : sfackler/rust-postgres-test:3
34
30
steps :
35
31
- checkout
36
32
- run : apt-get update
37
33
- run : DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
38
- - << : *RESTORE_REGISTRY
34
+ - *RESTORE_REGISTRY
39
35
- run : cargo generate-lockfile
40
- - << : *SAVE_REGISTRY
41
- - << : *RESTORE_DEPS
36
+ - *SAVE_REGISTRY
37
+ - run : rustc --version > ~/rust-version
38
+ - *RESTORE_DEPS
42
39
- run : cargo test --all
43
40
- run : cargo test --manifest-path=postgres/Cargo.toml --features "$(cargo read-manifest --manifest-path=postgres/Cargo.toml | jq -r '.features|keys|map(select(. != "with-security-framework" and . != "with-schannel"))|join(" ")')"
44
41
- run : cargo test --manifest-path=tokio-postgres/Cargo.toml --all-features
45
- - << : *SAVE_DEPS
42
+ - *SAVE_DEPS
You can’t perform that action at this time.
0 commit comments