Skip to content
Snippets Groups Projects
Commit 67129424 authored by ZZZ[GONE] PERRIER Guillaume's avatar ZZZ[GONE] PERRIER Guillaume
Browse files

[PHP-UNIT] Try fixing test failure 'The current node list is empty' (v1.7).

parent 4fb0cfdc
No related branches found
No related tags found
1 merge request!6[PHP-UNIT] Complete performing CI test within the container and use it for...
Pipeline #233335 canceled
......@@ -20,8 +20,12 @@ php-image-build:
script:
- docker build --pull -t "$IMAGE_PHP" -f ./docker/php-fpm/Dockerfile .
- cat ${phpunit} > phpunit.xml
- docker cp phpunit.xml $(docker create "$IMAGE_PHP"):/var/www/tms/phpunit.xml
- docker run "$IMAGE_PHP" sh -c "cd /var/www/tms/ ; vendor/bin/phpunit --configuration phpunit.xml"
- docker volume create phpunit_volume
#- docker run "$IMAGE_PHP" -v phpunit_volume:/var/www/tms/
- docker run "$IMAGE_PHP"
- docker cp phpunit.xml "$IMAGE_PHP":/var/www/tms/phpunit.xml
#- docker exec -v phpunit_volume sh -c "cd /var/www/tms/ ; vendor/bin/phpunit --configuration phpunit.xml"
- docker exec -it "$IMAGE_PHP" sh -c "cd /var/www/tms/ ; vendor/bin/phpunit --configuration phpunit.xml"
- docker exec -it "$IMAGE_PHP" rm /var/www/tms/phpunit.xml
- docker cp -a $(docker create "$IMAGE_PHP"):/var/www/tms/. php-build
- docker push "$IMAGE_PHP"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment