File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11restore_registry : &RESTORE_REGISTRY
22 restore_cache :
33 key : registry
4-
54save_registry : &SAVE_REGISTRY
65 save_cache :
76 key : registry-{{ .BuildNum }}
87 paths :
9- - /usr/local/cargo/registry/index
10-
8+ - /usr/local/cargo/registry/index
119deps_key : &DEPS_KEY
12- key : deps-1.19.0-{{ checksum "Cargo.lock" }}
13-
10+ key : deps-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
1411restore_deps : &RESTORE_DEPS
1512 restore_cache :
1613 << : *DEPS_KEY
17-
1814save_deps : &SAVE_DEPS
1915 save_cache :
2016 << : *DEPS_KEY
2117 paths :
22- - target
23- - /usr/local/cargo/registry/cache
18+ - target
19+ - /usr/local/cargo/registry/cache
2420
2521version : 2
2622jobs :
2723 build :
2824 working_directory : ~/build
2925 docker :
30- - image : rust:1.20 .0
26+ - image : rust:1.21 .0
3127 environment :
3228 RUSTFLAGS : -D warnings
3329 - image : sfackler/rust-postgres-test:3
3430 steps :
3531 - checkout
3632 - run : apt-get update
3733 - run : DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
38- - << : *RESTORE_REGISTRY
34+ - *RESTORE_REGISTRY
3935 - run : cargo generate-lockfile
40- - << : *SAVE_REGISTRY
41- - << : *RESTORE_DEPS
36+ - *SAVE_REGISTRY
37+ - run : rustc --version > ~/rust-version
38+ - *RESTORE_DEPS
4239 - run : cargo test --all
4340 - 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(" ")')"
4441 - 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