tealdeer/.circleci/config.yml
2019-01-01 23:23:53 +01:00

36 lines
912 B
YAML

version: 2
jobs:
build:
docker:
- image: rust:1.31
steps:
- checkout
# Load cargo target from cache if possible.
# Multiple caches are used to increase the chance of a cache hit.
- restore_cache:
keys:
- v1-cargo-cache-{{ arch }}-{{ .Branch }}
- v1-cargo-cache-{{ arch }}
# Show versions
- run: rustc --version && cargo --version
# Build
- run: cargo build
- run: cargo build --features logging
- run: cargo build --no-default-features
# Run tests
- run: cargo test
- run: cargo test --no-default-features
- save_cache:
key: v1-cargo-cache-{{ arch }}-{{ .Branch }}
paths:
- target
- /usr/local/cargo
- save_cache:
key: v1-cargo-cache-{{ arch }}
paths:
- target
- /usr/local/cargo