From 4adbe454091f201a7c7e6bfd9022ce77b2c3b318 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 27 Aug 2017 22:26:50 +0100 Subject: [PATCH] Use makefile in CI --- .circleci/config.yml | 7 +++---- Makefile | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a83368..3532e93 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,15 +14,14 @@ jobs: - run: apt update && apt install -y wget - run: make lib - run: cargo fmt -- --write-mode=diff - - run: cargo build - - run: cargo build --release + - run: make build + - run: make release - save_cache: key: cargo-{{ checksum "Cargo.lock" }} paths: - ~/.cargo - target/ - - run: cargo test - - run: cargo test --release + - run: make test - run: command: cargo run -- build working_directory: ~/md-pdf/test-files diff --git a/Makefile b/Makefile index 21fb51f..5b525cc 100644 --- a/Makefile +++ b/Makefile @@ -33,4 +33,8 @@ wktox: lib_path lib: pandoc wktox +test: + cargo test + cargo test --release + .PHONY: build pandoc lib_path wktox