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

31 lines
1 KiB
YAML
Raw Normal View History

2017-08-15 22:22:35 +01:00
version: 2.0
jobs:
build:
docker:
- image: jimmycuadra/rust
working_directory: ~/md-pdf
steps:
- checkout
2017-08-15 22:36:58 +01:00
- restore_cache:
keys:
2017-08-15 22:59:54 +01:00
- cargo-{{ checksum "Cargo.lock" }}
2017-08-15 22:22:35 +01:00
- run: which rustfmt || cargo install rustfmt
2017-09-01 20:05:14 +01:00
- run: apt update && apt install -y wget unzip sudo libgtk-3-dev
2017-09-09 19:18:42 +01:00
- run: ./scripts/lib
2017-08-27 22:30:09 +01:00
- run: ./.circleci/wkhtmltopdf.sh
2017-08-15 22:22:35 +01:00
- run: cargo fmt -- --write-mode=diff
2017-09-09 19:18:42 +01:00
- run: ./scripts/build
- run: ./scripts/build release
2017-08-15 22:49:27 +01:00
- save_cache:
2017-08-15 22:59:54 +01:00
key: cargo-{{ checksum "Cargo.lock" }}
2017-08-15 22:49:27 +01:00
paths:
- ~/.cargo
2017-09-09 19:18:42 +01:00
- run: ./scripts/test
2017-08-16 12:04:51 +01:00
- run:
2017-09-01 21:19:56 +01:00
command: ../.circleci/xserver.sh cargo run -- build
2017-08-16 12:04:51 +01:00
working_directory: ~/md-pdf/test-files
2017-08-16 11:13:18 +01:00
- run:
2017-09-01 21:19:56 +01:00
command: ../.circleci/xserver.sh cargo run --release -- build
2017-08-16 11:13:18 +01:00
working_directory: ~/md-pdf/test-files