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