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

Update .gitlab-ci.yml

parent e816dac6
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 #64643 failed
......@@ -7,15 +7,14 @@ default:
services:
- docker:dind
image: docker:latest
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build:
stage: build
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/php-build:$CI_COMMIT_REF_SLUG" -f ./docker/php-build/Dockerfile .
- docker create --name php-build-tmp "$CI_REGISTRY_IMAGE/php-build:$CI_COMMIT_REF_SLUG"
- docker cp php-build-tmp:/var/www/html "$CI_BUILD_DIR/php-build"
- docker cp $(docker create "$CI_REGISTRY_IMAGE/php-build:$CI_COMMIT_REF_SLUG"):/var/www/html "$CI_BUILD_DIR/php-build"
- ls -la "$CI_BUILD_DIR/php-build"
- docker rm -f php-build-tmp
artifacts:
......@@ -40,13 +39,11 @@ nginx-image-build:
test:
stage: test
image: $CI_REGISTRY_IMAGE/php-fpm:$CI_COMMIT_REF_SLUG
variables:
# Don't clone, the software is already in the image run
GIT_STRATEGY: none
dependencies: []
script:
- pwd && ls -la .
- sh ./tms/vendor/bin/simple-phpunit --configuration phpunit.xml.dist
- 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