mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: Fix the builds to run tests always.
This commit is contained in:
parent
3cfbe6564c
commit
535d201edc
21
Makefile
21
Makefile
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user