feat: add run-tests make task
This commit is contained in:
parent
4d755a3c65
commit
e1cdd9ecd0
2 changed files with 12 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -40,6 +40,10 @@ preseed:
|
|||
verify:
|
||||
./src/verify.sh
|
||||
|
||||
.PHONY: all-tests
|
||||
all-tests:
|
||||
./src/run-tests.sh
|
||||
|
||||
.PHONY: digests
|
||||
digests:
|
||||
./src/digests.sh
|
||||
|
|
8
src/run-tests.sh
Executable file
8
src/run-tests.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
pkgs=$(grep -rnw ./packages/*/Containerfile -e "^FROM.*test$" | awk -F":" '{print $1}' | tr '\n' ' ')
|
||||
|
||||
for containerfile in $pkgs; do
|
||||
docker build --target test - <$containerfile
|
||||
done
|
Loading…
Reference in a new issue