Commit 2abf7845 authored by Ndame Kital's avatar Ndame Kital
Browse files

un test car le dossier report est ajouté locale mais pas en CI

3 merge requests!9Resolve "enrichir le dossier test sur la base de la nouvelle architecture",!7Resolve "enrichir le dossier test sur la base de la nouvelle architecture",!6WIP: Resolve "migration vers la nouvelle architecture basée sur webpack npm"
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
Showing with 9 additions and 26 deletions
+9 -26
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/.idea/ /.idea/
/.php_cs*cache /.php_cs*cache
/reports/ /reports/
composer.lock composer.lock
package-lock.json package-lock.json
yarn.lock yarn.lock
......
include: include:
- project: pole-is/tools/ci-config - project: pole-is/tools/ci-config
ref: "2.0.0" ref: "2.1.0"
file: /php-package-ci.yml file: /php-multiversions-ci.yml
- project: pole-is/tools/ci-config - project: pole-is/tools/ci-config
ref: "2.0.0" ref: "2.1.0"
file: /satis-ci.yml file: /satis-ci.yml
stages:
- vendor
- test
- deploy
# Personnalisation des tâches par défaut:
.php: .php:
variables: variables:
DEBIAN_CODENAME: "stretch" PHP_IMAGE: gitlab-registry.irstea.fr/pole-is/docker/php/ci/panther
PHP_VERSION: "7.1" PHP_IMAGE_TAG: "20.02"
test:phpunit: .php-test:
# variables:
# PHP_IMAGE: gitlab-registry.irstea.fr/pole-is/docker/php/ci/panther
script: script:
- composer test:phpunit -- --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml --colors=never - composer "$CI_JOB_NAME"
artifacts: \ No newline at end of file
name: reports
expose_as: "phpunit reports"
when: always
paths:
- reports/
reports:
junit: reports/junit.xml
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
"vendor/bin/phpunit --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml" "vendor/bin/phpunit --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml"
], ],
"test:serve": [ "test:serve": [
"@test:install-assets",
"@php tests/console server:run -v --docroot=tests/Fixtures/public" "@php tests/console server:run -v --docroot=tests/Fixtures/public"
], ],
...@@ -172,4 +173,4 @@ ...@@ -172,4 +173,4 @@
"set -x; IMG=`docker build --build-arg \"PHP_VERSION=${PHP_VERSION:-7.1}\" --pull -q .` && docker run --rm -v ${PWD}:/var/www/theme-bundle -u `id -u`:`id -g` $IMG composer test" "set -x; IMG=`docker build --build-arg \"PHP_VERSION=${PHP_VERSION:-7.1}\" --pull -q .` && docker run --rm -v ${PWD}:/var/www/theme-bundle -u `id -u`:`id -g` $IMG composer test"
] ]
} }
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment