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
# - sudo bash -c "echo zend_extension=xdebug.so > /etc/php7.2-sp/conf.d/xdebug.ini"
environment:
php:
version: 7.2
hosts:
dev.local: '127.0.0.1'
apache2:
modules: ['rewrite']
sites:
ubiquity:
host: 'dev.local'
web_root: 'tests/fw/'
selenium: true
services:
# For available tags, see https://hub.docker.com/_/mysql/
mysql: 5.7
tests:
before:
- sudo cp tests/fw/xdebug.ini /home/scrutinizer/.phpenv/versions/7.2.13/etc/conf.d/xdebug.ini
- 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)
- cp tests/fw/composer.json tests/fw/prj-test-admin/
- composer --working-dir=$(pwd)/tests/fw/prj-test-admin update
- cp tests/fw/_index.php tests/fw/prj-test-admin/index.php && cp tests/fw/xdebug.php tests/fw/prj-test-admin/xdebug.php
- cp -R Ubiquity tests/fw/prj-test-admin/Ubiquity/
- cp tests/fw/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
- sudo chmod 777 -R tests/ && sudo chown -R www-data:www-data tests/fw/
- sudo service apache2 restart && sudo service apache2 reload && sudo curl -v http://dev.local/prj-test-admin/xdebug.php
- mv composer-tests.json composer.json
- composer update
override:
- command: ./vendor/bin/codecept build && ./vendor/bin/codecept run --steps --coverage --coverage-xml --fail-fast
coverage:
file: tests/_output/acceptance.remote.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