This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
md-pdf-rs/.circleci/config.yml
2017-08-15 23:21:06 +01:00

25 lines
779 B
YAML

version: 2.0
jobs:
build:
docker:
- image: jimmycuadra/rust
working_directory: ~/md-pdf
steps:
- checkout
- restore_cache:
keys:
- cargo-{{ checksum "Cargo.lock" }}
- run: which rustfmt || cargo install rustfmt
- run: apt update && apt install -y wget
- run: ./scripts/install-deps.sh
- run: cargo fmt -- --write-mode=diff
- run: cargo build
- run: cargo build --release
- save_cache:
key: cargo-{{ checksum "Cargo.lock" }}
paths:
- ~/.cargo
- target/
- run: cargo test
- run: cargo test --release