bump rust version

This commit is contained in:
Steven Fackler 2018-04-15 14:23:14 -07:00
parent ec7db287e1
commit 1d4345543c

View File

@ -1,33 +1,29 @@
restore_registry: &RESTORE_REGISTRY restore_registry: &RESTORE_REGISTRY
restore_cache: restore_cache:
key: registry key: registry
save_registry: &SAVE_REGISTRY save_registry: &SAVE_REGISTRY
save_cache: save_cache:
key: registry-{{ .BuildNum }} key: registry-{{ .BuildNum }}
paths: paths:
- /usr/local/cargo/registry/index - /usr/local/cargo/registry/index
deps_key: &DEPS_KEY deps_key: &DEPS_KEY
key: deps-1.19.0-{{ checksum "Cargo.lock" }} key: deps-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
restore_deps: &RESTORE_DEPS restore_deps: &RESTORE_DEPS
restore_cache: restore_cache:
<<: *DEPS_KEY <<: *DEPS_KEY
save_deps: &SAVE_DEPS save_deps: &SAVE_DEPS
save_cache: save_cache:
<<: *DEPS_KEY <<: *DEPS_KEY
paths: paths:
- target - target
- /usr/local/cargo/registry/cache - /usr/local/cargo/registry/cache
version: 2 version: 2
jobs: jobs:
build: build:
working_directory: ~/build working_directory: ~/build
docker: docker:
- image: rust:1.20.0 - image: rust:1.21.0
environment: environment:
RUSTFLAGS: -D warnings RUSTFLAGS: -D warnings
- image: sfackler/rust-postgres-test:3 - image: sfackler/rust-postgres-test:3
@ -35,11 +31,12 @@ jobs:
- checkout - checkout
- run: apt-get update - run: apt-get update
- run: DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq - run: DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq
- <<: *RESTORE_REGISTRY - *RESTORE_REGISTRY
- run: cargo generate-lockfile - run: cargo generate-lockfile
- <<: *SAVE_REGISTRY - *SAVE_REGISTRY
- <<: *RESTORE_DEPS - run: rustc --version > ~/rust-version
- *RESTORE_DEPS
- run: cargo test --all - 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=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 - run: cargo test --manifest-path=tokio-postgres/Cargo.toml --all-features
- <<: *SAVE_DEPS - *SAVE_DEPS