-
Notifications
You must be signed in to change notification settings - Fork 60
/
.scrutinizer.yml
106 lines (102 loc) · 4.5 KB
/
.scrutinizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
build:
nodes:
analysis:
dependencies:
before:
- composer require twig/twig phpmv/ubiquity-annotations phpfastcache/phpfastcache monolog/monolog czproject/git-php phpmv/php-mv-ui
- composer require codeception/codeception:^4.0 --dev
- composer require codeception/module-webdriver:^1.4 --dev
- composer require codeception/lib-innerbrowser:^1.5 --dev
- composer require codeception/module-asserts --dev
- composer require symfony/http-kernel:^5.3 --dev
- composer require phpmv/ubiquity-devtools:dev-master --dev
environment:
php:
version: 7.4
pecl_extensions:
- zip
tests:
override:
- php-scrutinizer-run
coverage:
dependencies:
before:
# - sudo apt-get install -y php7.4-dev
environment:
php:
version: 7.4
pecl_extensions:
- zip
hosts:
dev.local: '127.0.0.1'
worker.local: '127.0.0.1'
apache2:
modules: [ 'rewrite' ]
sites:
ubiquity:
host: 'dev.local'
web_root: 'src/'
selenium: true
google_chrome:
use_latest: true
services:
# For available tags, see https://hub.docker.com/_/mysql/
mysql: 5.7
tests:
before:
- sudo cp src/tests/files/xdebug.ini /home/scrutinizer/.phpenv/versions/7.4.27/etc/conf.d/xdebug.ini
- mysql -u root mysql < src/tests/unit/db/messagerie.sql
- mysql -u root mysql < src/tests/unit/db/projects.sql
- mysql -u root mysql < src/tests/unit/db/hello_world.sql
- (yes | ./vendor/bin/Ubiquity new src -b=messagerie -m -a -h=semantic,foundation,bootstrap)
- cp -f src/tests/files/composer.json src/composer.json
- (cd src/ && composer update)
- (cd src/ && ./../vendor/bin/Ubiquity clear-cache)
- cp -f src/tests/files/_index.php src/index.php && cp -f src/tests/files/.htaccess src/.htaccess && cp -f src/tests/files/services.php src/app/config/ && cp -f src/tests/files/config.php src/app/config/ && cp -f src/tests/files/myAuthentification.config.php src/app/config/
- cp -R src/tests/files/unit/* src/app/
- (cd src/ && ./../vendor/bin/Ubiquity all-models -d=bench -a=public)
- (cd src/ && ./../vendor/bin/Ubiquity init-cache)
- (cd src/ && ./../vendor/bin/Ubiquity info:routes)
- sudo chmod -R 777 src
- sudo chmod -R 777 src/app/cache-tests
- cp -f src/tests/files/workerman/run-workerman.sh run-workerman.sh && cp -f src/tests/files/workerman/workerServices.php src/app/config/workerServices.php
- sudo chmod +x run-workerman.sh
- sudo /usr/share/locales/install-language-pack fr_FR
- sudo service apache2 restart && sudo service apache2 reload
- sudo curl -v http://dev.local/
- (cd src/ && composer require phpmv/ubiquity-workerman:dev-master)
- cp -f src/tests/files/workerman/_workerman.php src/.ubiquity/
- command: ./run-workerman.sh
background: true
- (cd src/ && ./../vendor/bin/Ubiquity info:models -d=bench)
- sudo curl -v http://worker.local:8095/db
override:
- command: (cd src/ && ./vendor/bin/codecept build && ./vendor/bin/codecept run --coverage-xml -v)
coverage:
file: src/tests/_output/coverage.xml
format: clover
filter:
paths: [ "src/Ubiquity/*" ]
excluded_paths:
- src/Ubiquity/cache/system/ApcuCache.php
- src/Ubiquity/cache/system/ArrayApcCache.php
- src/Ubiquity/cache/system/MemCachedDriver.php
- src/Ubiquity/cache/system/PhpFastCacheDriver.php
- src/Ubiquity/cache/system/RedisCacheDriver.php
- src/Ubiquity/cache/system/ObjectCacheDriver.php
- src/Ubiquity/cache/dao/DAOSerialCache.php
- src/Ubiquity/cache/dao/DAOCache.php
- src/Ubiquity/db/providers/pdo/drivers/SqliteDriverMetas.php
- src/Ubiquity/db/providers/pdo/drivers/PgsqlDriverMetas.php
- src/Ubiquity/utils/git/UGitRepository.php
- src/Ubiquity/utils/http/session/MultiSiteSession.php
- src/Ubiquity/utils/http/foundation/Psr7.php
- src/Ubiquity/utils/git/*
- src/Ubiquity/cache/Preloader.php
- src/Ubiquity/cache/preloading/
- src/Ubiquity/controllers/StartupAsync.php
- src/Ubiquity/controllers/crud/viewers/traits/FormModelViewerTrait.php
checks:
php:
code_rating: true
duplication: true