Skip to content

Commit c5f0ae0

Browse files
committed
Makefile to generate blueprints and test common cases
1 parent 1162c74 commit c5f0ae0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
blueprint: ## Generate all blueprints file
2+
@if ! type orbit >/dev/null 2>&1; then echo "Missing orbit dependency, please install from https://github.com/gulien/orbit/"; exit 1; fi
3+
orbit run generate
4+
@sed -i '1i\# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint)' Dockerfile.*
5+
@sed -i '1i\[DO NOT EDIT THIS FILE]: <> (Make yours changes in /utils/README.blueprint.md)' README.md
6+
7+
test-latest: test-php8.0 ## Test the latest build only
8+
9+
test-php8.1: blueprint ## Test php8.1 build only
10+
PHP_VERSION=8.1 BRANCH=v4 VARIANT=apache ./build-and-test.sh || (notify-send -u critical "Tests failed" && exit 1)
11+
PHP_VERSION=8.1 BRANCH=v4 VARIANT=cli ./build-and-test.sh || (notify-send -u critical "Tests failed" && exit 1)
12+
notify-send -u critical "Tests passed with success"
13+
14+
test-php8.0: blueprint ## Test php8.0 build only
15+
PHP_VERSION=8.0 BRANCH=v4 VARIANT=apache ./build-and-test.sh || (notify-send -u critical "Tests failed" && exit 1)
16+
PHP_VERSION=8.0 BRANCH=v4 VARIANT=cli ./build-and-test.sh || (notify-send -u critical "Tests failed" && exit 1)
17+
notify-send -u critical "Tests passed with success"
18+
19+
clean: ## Clean dangles image after build

0 commit comments

Comments
 (0)