-
-
Notifications
You must be signed in to change notification settings - Fork 476
/
Copy pathcircle.yml
28 lines (28 loc) · 1.06 KB
/
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
version: 2
jobs:
build:
working_directory: ~/build
docker:
- image: jimmycuadra/rust:1.18.0
- image: sfackler/rust-postgres-test:2
steps:
- checkout
- run: apt-get update
- run: DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
- restore_cache:
key: registry
- run: cargo generate-lockfile
- save_cache:
key: registry-{{ epoch }}
paths:
- ~/.cargo/registry/index
- restore_cache:
key: dependencies-1.18-{{ checksum "Cargo.lock" }}
- run: cargo test --all
- 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(" ")')"
- run: cargo test --manifest-path=tokio-postgres/Cargo.toml --all-features
- save_cache:
key: dependencies-1.18-{{ checksum "Cargo.lock" }}
paths:
- target
- ~/.cargo/registry/cache