-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile
22 lines (20 loc) · 1.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
test:
./vendor/bin/phpunit tests --colors --coverage-text --whitelist=src --coverage-clover=build/coverage/clover.xml
docker_build:
docker build --build-arg PHP_VERSION=7.4 -t calendr:7.4 .
docker build --build-arg PHP_VERSION=7.4 --build-arg COMPOSER_FLAGS="--prefer-lowest" -t calendr:7.4-lowdeps .
docker build --build-arg PHP_VERSION=8.0 -t calendr:8.0 .
docker build --build-arg PHP_VERSION=8.0 --build-arg COMPOSER_FLAGS="--prefer-lowest" -t calendr:8.0-lowdeps .
docker build --build-arg PHP_VERSION=8.0 -t calendr:8.1 .
docker build --build-arg PHP_VERSION=8.0 --build-arg COMPOSER_FLAGS="--prefer-lowest" -t calendr:8.1-lowdeps .
docker build --build-arg PHP_VERSION=8.0 -t calendr:8.2 .
docker build --build-arg PHP_VERSION=8.0 --build-arg COMPOSER_FLAGS="--prefer-lowest" -t calendr:8.2-lowdeps .
docker_test: docker_build
docker run -it --rm calendr:7.4 ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:7.4-lowdeps ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:8.0 ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:8.0-lowdeps ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:8.1 ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:8.1-lowdeps ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:8.2 ./vendor/bin/phpunit tests --colors
docker run -it --rm calendr:8.2-lowdeps ./vendor/bin/phpunit tests --colors