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

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

parent c20ac268
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 #232983 failed
......@@ -19,7 +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 run "$IMAGE_PHP"
- docker run -idt "$IMAGE_PHP"
- 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"
......
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