From 6fdff3ecca87b2e63663a88082f507bae0f64d46 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Fri, 12 Jul 2019 22:18:09 -0500 Subject: [PATCH 1/2] Add make check to build to check features are in test --- .circleci/config.yml | 8 ++++++++ Makefile | 3 +++ 2 files changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e02dd9a55..6f69cbc22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -111,6 +111,10 @@ jobs: name: Debug flag checked command: | cargo check --features "debug" --release + - run: + name: Check + command: | + make check - run: name: Release command: make release-fast @@ -163,6 +167,10 @@ jobs: ulimit -n 8000 sudo sysctl -w kern.maxfiles=655360 kern.maxfilesperproc=327680 make test + - run: + name: Check + command: | + make check - run: name: Release command: | diff --git a/Makefile b/Makefile index 38fbb8dc4..59a8d3dd1 100644 --- a/Makefile +++ b/Makefile @@ -117,6 +117,9 @@ debug: install: cargo install --path . +check: + cargo check --release --features backend-singlepass,backend-llvm,loader:kernel + release: cargo build --release --features backend-singlepass,backend-llvm,loader:kernel From bf2494898d70e6a7cbeb3f5281b0204c29c3bb09 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Fri, 12 Jul 2019 22:35:54 -0500 Subject: [PATCH 2/2] Add cargo to macos path for make check --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6f69cbc22..40c2772ea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -170,6 +170,7 @@ jobs: - run: name: Check command: | + export PATH="$HOME/.cargo/bin:$PATH" make check - run: name: Release