Skip to content

Commit

Permalink
switch builds to circle
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Aug 5, 2017
1 parent 19e1c9c commit 0968f43
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
restore_registry: &RESTORE_REGISTRY
restore_cache:
key: registry

save_registry: &SAVE_REGISTRY
save_cache:
key: registry-{{ .BuildNum }}
paths:
- ~/.cargo/registry/index

deps_key: &DEPS_KEY
key: dependencies-1.18-{{ checksum "Cargo.lock" }}

restore_deps: &RESTORE_DEPS
restore_cache:
<<: *DEPS_KEY

save_deps: &SAVE_DEPS
save_cache:
<<: *DEPS_KEY
paths:
- target
- ~/.cargo/regisstry/cache

version: 2
jobs:
build:
working_directory: ~/build
docker:
- image: jimmycuadra/rust:1.18.0
steps:
- checkout
- <<: *RESTORE_REGISTRY
- run: cargo generate-lockfile
- <<: *SAVE_REGISTRY
- <<: *RESTORE_DEPS
- run: cargo test
- run: cargo test --features with-backtrace
- <<: *SAVE_DEPS
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

0 comments on commit 0968f43

Please sign in to comment.