1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Remove non-fail-fast build and test rules.

This commit is contained in:
Joseph Crail 2015-11-25 17:32:02 -05:00
parent cda60eb3d5
commit 089d15c4ca
3 changed files with 10 additions and 25 deletions

View file

@ -7,8 +7,6 @@ sudo: false
script: script:
- make - make
- make test - make test
- make build-check
- make test-check
matrix: matrix:
allow_failures: allow_failures:
- rust: stable - rust: stable

View file

@ -200,31 +200,28 @@ all: build
crates: crates:
echo "okay" $(EXES) echo "okay" $(EXES)
build_uutils = ${CARGO} build --features "${1}" ${PROFILE_CMD} --no-default-features
build_pkg = ${CARGO} build ${PROFILE_CMD} -p ${1}
run_integration_tests = ${CARGO} test --test ${1}
run_unit_tests = ${CARGO} test -p ${1}
do_install = install ${1} do_install = install ${1}
use_default := 1 use_default := 1
test: $(foreach util,$(EXES),$(eval $(call BUILD_EXE,$(util))))
$(call build_uutils, ${TESTS})
$(foreach util, ${TESTS}, $(call run_integration_tests, ${util});)
$(foreach util, ${TESTS}, $(call run_unit_tests, ${util});)
build: build-uutils:
$(call build_uutils, ${EXES}) ${CARGO} build --features "${EXES}" ${PROFILE_CMD} --no-default-features
build: build-uutils $(addprefix build_exe_,$(EXES))
$(foreach util, ${EXES}, $(call build_pkg, ${util});) $(foreach util, ${EXES}, $(call build_pkg, ${util});)
$(foreach test,$(TESTS),$(eval $(call TEST_INTEGRATION,$(test))))
$(foreach test,$(TESTS),$(eval $(call TEST_UNIT,$(test))))
test: $(addprefix test_integration_,$(TESTS)) $(addprefix test_unit_,$(TESTS))
clean: clean:
$(RM) -rf $(BUILDDIR) $(RM) -rf $(BUILDDIR)
distclean: clean distclean: clean
$(CARGO) clean && $(CARGO) update $(CARGO) clean && $(CARGO) update
build-check: build clean
test-check: test clean
# TODO: figure out if there is way for prefixes to work with the symlinks # TODO: figure out if there is way for prefixes to work with the symlinks
install: build install: build
PROFILE_CMD=--release PROFILE_CMD=--release

View file

@ -46,16 +46,6 @@ To build with LTO and stripping:
make ENABLE_LTO=y ENABLE_STRIP=y make ENABLE_LTO=y ENABLE_STRIP=y
``` ```
To check all available utilities for build errors:
```
make build-check
```
To check all available tests for errors:
```
make test-check
```
Installation Instructions Installation Instructions
------------------------- -------------------------