Commit e7662337 authored by François Agneray's avatar François Agneray
Browse files

Add version of jakzal/phpqa (php7.4)

parent 4a7d6463
Pipeline #3715 passed with stages
in 1 minute and 49 seconds
......@@ -11,7 +11,7 @@ variables:
CONTAINER_IMAGE: portus.lam.fr/anis/anis-server
install:
image: jakzal/phpqa
image: jakzal/phpqa:php7.4
stage: install
script:
- composer install --ignore-platform-reqs
......@@ -24,7 +24,7 @@ install:
- develop
phpunit:
image: jakzal/phpqa
image: jakzal/phpqa:php7.4
stage: test
script:
- phpdbg -qrr ./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --whitelist src --coverage-clover ./coverage/clover.xml --log-junit ./coverage/junit-logfile.xml --colors=never ./tests
......
......@@ -23,7 +23,7 @@ install:
@docker run --init -it --rm --user $(UID):$(GID) \
-e COMPOSER_CACHE_DIR=/dev/null \
-v $(CURDIR):/project \
-w /project jakzal/phpqa composer install --ignore-platform-reqs
-w /project jakzal/phpqa:php7.4 composer install --ignore-platform-reqs
rebuild:
@docker-compose up --build -d
......@@ -49,13 +49,13 @@ shell:
phpunit:
@docker run --init -it --rm --user $(UID):$(GID) \
-v $(CURDIR):/project \
-w /project jakzal/phpqa phpdbg -qrr ./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php \
-w /project jakzal/phpqa:php7.4 phpdbg -qrr ./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php \
--whitelist src --colors --coverage-html ./phpunit-coverage ./tests
phpcs:
@docker run --init -it --rm --user $(UID):$(GID) \
-v $(CURDIR):/project \
-w /project jakzal/phpqa phpcs --standard=PSR12 --extensions=php --colors src tests
-w /project jakzal/phpqa:php7.4 phpcs --standard=PSR12 --extensions=php --colors src tests
create-db:
@docker-compose exec php sh ./conf-dev/init-keycloak.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment