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"
Showing with 9 additions and 26 deletions
+9 -26
......@@ -2,7 +2,6 @@
/.idea/
/.php_cs*cache
/reports/
composer.lock
package-lock.json
yarn.lock
......
include:
- project: pole-is/tools/ci-config
ref: "2.0.0"
file: /php-package-ci.yml
ref: "2.1.0"
file: /php-multiversions-ci.yml
- project: pole-is/tools/ci-config
ref: "2.0.0"
ref: "2.1.0"
file: /satis-ci.yml
stages:
- vendor
- test
- deploy
# Personnalisation des tâches par défaut:
.php:
variables:
DEBIAN_CODENAME: "stretch"
PHP_VERSION: "7.1"
PHP_IMAGE: gitlab-registry.irstea.fr/pole-is/docker/php/ci/panther
PHP_IMAGE_TAG: "20.02"
test:phpunit:
# variables:
# PHP_IMAGE: gitlab-registry.irstea.fr/pole-is/docker/php/ci/panther
.php-test:
script:
- composer test:phpunit -- --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml --colors=never
artifacts:
name: reports
expose_as: "phpunit reports"
when: always
paths:
- reports/
reports:
junit: reports/junit.xml
- composer "$CI_JOB_NAME"
\ No newline at end of file
......@@ -161,6 +161,7 @@
"vendor/bin/phpunit --coverage-text --coverage-html=reports/coverage --log-junit=reports/junit.xml"
],
"test:serve": [
"@test:install-assets",
"@php tests/console server:run -v --docroot=tests/Fixtures/public"
],
......@@ -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"
]
}
}
}
\ 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