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

[GITLAB-CI] Try running test from outside the container (v1.0).

parent ea61b673
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 #232953 failed
......@@ -19,6 +19,7 @@ php-image-build:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$IMAGE_PHP" -f ./docker/php-fpm/Dockerfile .
- docker exec -it "$IMAGE_PHP" bash -c "cd /var/www/tms/ && vendor/bin/phpunit --configuration phpunit.xml.dist"
- docker cp -a $(docker create "$IMAGE_PHP"):/var/www/tms/. php-build
- docker push "$IMAGE_PHP"
artifacts:
......
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