diff options
author | Joel Galenson <jgalenson@google.com> | 2020-07-28 13:47:53 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2020-07-28 13:47:53 -0700 |
commit | f9f5d85f3b996597622d9e152c0a2a2959da53cc (patch) | |
tree | 955a5f812181b5a584aa5cbd6675961c74d75b69 /.circleci | |
parent | acf04ada8df32eed14ba56212b6141cadf4faf61 (diff) | |
download | fallible-streaming-iterator-f9f5d85f3b996597622d9e152c0a2a2959da53cc.tar.gz |
Import fallible-streaming-iterator-0.1.9
Change-Id: I18258bfb568c3392af54cd4fcc8481ae99b8e9ef
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..f64c742 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,38 @@ +restore_registry: &RESTORE_REGISTRY + restore_cache: + key: registry +save_registry: &SAVE_REGISTRY + save_cache: + key: registry-{{ .BuildNum }} + paths: + - /usr/local/cargo/registry/index +deps_key: &DEPS_KEY + key: deps-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }} +restore_deps: &RESTORE_DEPS + restore_cache: + <<: *DEPS_KEY +save_deps: &SAVE_DEPS + save_cache: + <<: *DEPS_KEY + paths: + - target + - /usr/local/cargo/registry/cache + +version: 2 +jobs: + build: + working_directory: ~/build + docker: + - image: rust:1.19.0 + environment: + RUSTFLAGS: -D warnings + steps: + - checkout + - *RESTORE_REGISTRY + - run: cargo generate-lockfile + - *SAVE_REGISTRY + - run: rustc --version > ~/rust-version + - *RESTORE_DEPS + - run: cargo test + - run: cargo test --features std + - *SAVE_DEPS |