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

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: ...@@ -11,7 +11,7 @@ variables:
CONTAINER_IMAGE: portus.lam.fr/anis/anis-server CONTAINER_IMAGE: portus.lam.fr/anis/anis-server
install: install:
image: jakzal/phpqa image: jakzal/phpqa:php7.4
stage: install stage: install
script: script:
- composer install --ignore-platform-reqs - composer install --ignore-platform-reqs
...@@ -24,7 +24,7 @@ install: ...@@ -24,7 +24,7 @@ install:
- develop - develop
phpunit: phpunit:
image: jakzal/phpqa image: jakzal/phpqa:php7.4
stage: test stage: test
script: 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 - 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: ...@@ -23,7 +23,7 @@ install:
@docker run --init -it --rm --user $(UID):$(GID) \ @docker run --init -it --rm --user $(UID):$(GID) \
-e COMPOSER_CACHE_DIR=/dev/null \ -e COMPOSER_CACHE_DIR=/dev/null \
-v $(CURDIR):/project \ -v $(CURDIR):/project \
-w /project jakzal/phpqa composer install --ignore-platform-reqs -w /project jakzal/phpqa:php7.4 composer install --ignore-platform-reqs
rebuild: rebuild:
@docker-compose up --build -d @docker-compose up --build -d
...@@ -49,13 +49,13 @@ shell: ...@@ -49,13 +49,13 @@ shell:
phpunit: phpunit:
@docker run --init -it --rm --user $(UID):$(GID) \ @docker run --init -it --rm --user $(UID):$(GID) \
-v $(CURDIR):/project \ -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 --whitelist src --colors --coverage-html ./phpunit-coverage ./tests
phpcs: phpcs:
@docker run --init -it --rm --user $(UID):$(GID) \ @docker run --init -it --rm --user $(UID):$(GID) \
-v $(CURDIR):/project \ -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: create-db:
@docker-compose exec php sh ./conf-dev/init-keycloak.sh @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