Skip to content

Commit

Permalink
Update circle config
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Dec 7, 2017
1 parent d1ee3e1 commit e9fb648
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
- *SAVE_DEPS
23 changes: 0 additions & 23 deletions circle.yml

This file was deleted.

0 comments on commit e9fb648

Please sign in to comment.