Checkout Config
build:
nodes:
analysis:
dependencies:
before:
- composer require twig/twig mindplay/annotations phpfastcache/phpfastcache monolog/monolog czproject/git-php phpmv/php-mv-ui
- composer require codeception/codeception --dev
tests:
override:
- php-scrutinizer-run
coverage:
dependencies:
before:
- sudo apt-get install -y zip
environment:
php:
version: 7.3
hosts:
'local.dev': '127.0.0.1'
apache2:
modules: ['rewrite', 'macro', 'headers']
sites:
ubiquity:
web_root: 'tests/fw/'
host: 'local.dev'
rules:
- 'RewriteCond %{REQUEST_FILENAME} !-f'
- 'RewriteCond %{HTTP_ACCEPT} !(.*images.*)'
- 'RewriteRule ^(.*)$ index.php?c=$1 [L,QSA]'
selenium: true
services:
# For available tags, see https://hub.docker.com/_/mysql/
mysql: 5.7
tests:
before:
- mysql -u root mysql < tests/unit/db/messagerie.sql
- (cd tests/fw && yes | ./../../vendor/bin/Ubiquity new prj-test-admin -b=messagerie -q=semantic -m -a)
- composer --working-dir=$(pwd)/tests/fw/prj-test-admin require codeception/c3 codeception/codeception -dev
- cp tests/fw/_index.php tests/fw/prj-test-admin/index.php && cp tests/fw/_blank.html tests/fw/prj-test-admin/blank.html
- cp -R Ubiquity tests/fw/prj-test-admin/Ubiquity/
- cp codeception.yml tests/fw/prj-test-admin/codeception.yml
- unzip tests/fw/tests.zip -d tests/fw/prj-test-admin/tests/
- cp tests/fw/c3.php tests/fw/prj-test-admin/c3.php
- chmod 777 -R tests/
override:
- command: ./vendor/bin/codecept build && ./vendor/bin/codecept run
coverage:
file: tests/_output/coverage.xml
format: clover
filter:
excluded_paths:
- Ubiquity/log/
- Ubiquity/controllers/Autoloader.php
- Ubiquity/controllers/admin/
- Ubiquity/annotations/
- Ubiquity/js/Jquery.php
- Ubiquity/utils/git/UGitRepository.php
- docs/
- api/
- documentation/
- tests/
checks:
php:
code_rating: true
duplication: true
Repository Config
# language: php