Use makefile in CI

This commit is contained in:
Jake Howard 2017-08-27 22:26:50 +01:00
parent 91364230a6
commit 4adbe45409
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 4 deletions

View file

@ -14,15 +14,14 @@ jobs:
- run: apt update && apt install -y wget - run: apt update && apt install -y wget
- run: make lib - run: make lib
- run: cargo fmt -- --write-mode=diff - run: cargo fmt -- --write-mode=diff
- run: cargo build - run: make build
- run: cargo build --release - run: make release
- save_cache: - save_cache:
key: cargo-{{ checksum "Cargo.lock" }} key: cargo-{{ checksum "Cargo.lock" }}
paths: paths:
- ~/.cargo - ~/.cargo
- target/ - target/
- run: cargo test - run: make test
- run: cargo test --release
- run: - run:
command: cargo run -- build command: cargo run -- build
working_directory: ~/md-pdf/test-files working_directory: ~/md-pdf/test-files

View file

@ -33,4 +33,8 @@ wktox: lib_path
lib: pandoc wktox lib: pandoc wktox
test:
cargo test
cargo test --release
.PHONY: build pandoc lib_path wktox .PHONY: build pandoc lib_path wktox