rust-postgres/circle.yml

29 lines
1.1 KiB
YAML
Raw Normal View History

2017-07-09 02:40:03 +00:00
version: 2
jobs:
build:
working_directory: ~/build
docker:
2017-07-09 17:33:04 +00:00
- image: jimmycuadra/rust:1.18.0
2017-07-15 19:49:42 +00:00
- image: sfackler/rust-postgres-test:2
2017-07-09 02:40:03 +00:00
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" }}
2017-07-09 02:40:03 +00:00
- 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" }}
2017-07-09 02:40:03 +00:00
paths:
- target
- ~/.cargo/registry/cache