MAINT: Fix the builds to run tests always.

This commit is contained in:
Jeremy Wall 2019-02-19 16:37:33 -06:00
parent 3cfbe6564c
commit 535d201edc

View File

@ -5,25 +5,20 @@ all: test build
build: build:
cargo build cargo build
test: stdlibtest test: unit integration stdlibtest
rustfiles := $(find . -type f -name '*.rs') rustfiles := $(find . -type f -name '*.rs')
stdlibfiles := $(find std -type f -name '*.ucg) stdlibfiles := $(find std -type f -name '*.ucg')
unittest.log: $(rustfiles)
cargo test | tee unittest.log
unit: unittest.log unit:
cargo test
integration.log: unit integration:
cargo run -- test -r integration_tests | tee integration.log cargo run -- test -r integration_tests
integration: integration.log stdlibtest:
cargo run -- test -r std/tests
stdlibtest.log: $(stdlibfiles)
cargo run -- test -r std/tests | tee stdlibtest.log
stdlibtest: stdlibtest.log integration
install: test install: test
cargo install --path . --force cargo install --path . --force