Skip to content
Snippets Groups Projects
Commit a8528572 authored by Benjamin Guillon's avatar Benjamin Guillon :metal:
Browse files

Update .gitlab-ci.yml

parent 52011119
No related branches found
No related tags found
3 merge requests!5Module Tapes : Try fixing bug 'Mixed Content The page at was loaded over...,!3Openshift deployment,!2Openshift deployment
Pipeline #64694 failed
......@@ -14,9 +14,13 @@ build:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/php-build:$CI_COMMIT_REF_SLUG" -f ./docker/php-build/Dockerfile .
- mkdir php-build && docker cp $(docker create "$CI_REGISTRY_IMAGE/php-build:$CI_COMMIT_REF_SLUG"):/var/www/html php-build
- mkdir php-build && docker cp $(docker create "$CI_REGISTRY_IMAGE/php-build:$CI_COMMIT_REF_SLUG"):/var/www/html/* php-build
- pwd && ls -la php-build
after_script:
# Workaround to exclude unwanted files in artifact
- rm -rf php-build/var
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- php-build
......@@ -43,6 +47,7 @@ test:
GIT_STRATEGY: none
dependencies: []
script:
- pwd && ls -la
- docker run $CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG sh ./tms/vendor/bin/simple-phpunit --configuration phpunit.xml.dist
## TODO: Define unit tests
## TODO: Add unit tests report as job artifact
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