-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.scrutinizer.yml
84 lines (84 loc) · 5.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
build:
nodes:
# Edge Zemit Build
zemit:
root_path: './'
services:
mysql: latest
redis: 6
resources:
cpus: 1
environment:
selenium: true
google_chrome:
use_latest: true
timezone: 'America/New_York'
hosts:
core.zemit.local: 127.0.0.1
apache2:
modules: ['rewrite']
sites:
zemit:
host: core.zemit.local # also make sure to add under "hosts" above
web_root: public/
rules:
- 'RewriteEngine On'
- 'RewriteCond %{REQUEST_FILENAME} !-d'
- 'RewriteCond %{REQUEST_FILENAME} !-f'
- 'RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]'
php:
version: 8.3.13
compile_options: '--with-config-file-path=/home/scrutinizer/.phpenv/versions/8.3.13/etc --with-config-file-scan-dir=/home/scrutinizer/.phpenv/versions/8.3.13/etc/conf.d --prefix=/home/scrutinizer/.phpenv/versions/8.3.13 --libexecdir=/home/scrutinizer/.phpenv/versions/8.3.13/libexec --enable-intl --with-openssl --with-gd --enable-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-exif --with-libzip --with-zlib --with-zlib-dir=/usr --with-sodium --with-pdo-sqlite --enable-soap --enable-xmlreader --with-xsl --enable-ftp --with-tidy --with-xmlrpc --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-pcntl --with-readline --enable-mbstring --with-curl --with-pgsql --with-pdo-pgsql --with-gettext --enable-sockets --with-bz2 --enable-bcmath --enable-calendar --with-libdir=lib --enable-fpm --enable-zts --with-gmp --with-kerberos --with-imap --with-imap-ssl --with-apxs2=/usr/bin/apxs --with-ldap --with-pear=/home/scrutinizer/.phpenv/versions/8.3.13/pear'
# compile_options: '--with-config-file-path=/home/scrutinizer/.phpenv/versions/8.2.17/etc --with-config-file-scan-dir=/home/scrutinizer/.phpenv/versions/8.2.17/etc/conf.d --prefix=/home/scrutinizer/.phpenv/versions/8.2.17 --libexecdir=/home/scrutinizer/.phpenv/versions/8.2.17/libexec --enable-intl --with-openssl --with-gd --enable-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-exif --with-libzip --with-zlib --with-zlib-dir=/usr --with-sodium --with-pdo-sqlite --enable-soap --enable-xmlreader --with-xsl --enable-ftp --with-tidy --with-xmlrpc --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-pcntl --with-readline --enable-mbstring --with-curl --with-pgsql --with-pdo-pgsql --with-gettext --enable-sockets --with-bz2 --enable-bcmath --enable-calendar --with-libdir=lib --enable-fpm --enable-zts --with-gmp --with-kerberos --with-imap --with-imap-ssl --with-apxs2=/usr/bin/apxs --with-ldap --with-pear=/home/scrutinizer/.phpenv/versions/8.2.17/pear'
# compile_options: '--with-config-file-path=/home/scrutinizer/.phpenv/versions/7.4.14/etc --with-config-file-scan-dir=/home/scrutinizer/.phpenv/versions/7.4.14/etc/conf.d --prefix=/home/scrutinizer/.phpenv/versions/7.4.14 --libexecdir=/home/scrutinizer/.phpenv/versions/7.4.14/libexec --enable-intl --with-openssl --with-gd --enable-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-exif --with-libzip --with-zlib --with-zlib-dir=/usr --with-sodium --with-pdo-sqlite --enable-soap --enable-xmlreader --with-xsl --enable-ftp --with-tidy --with-xmlrpc --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-pcntl --with-readline --enable-mbstring --with-curl --with-pgsql --with-pdo-pgsql --with-gettext --enable-sockets --with-bz2 --enable-bcmath --enable-calendar --with-libdir=lib --enable-fpm --enable-maintainer-zts --with-gmp --with-kerberos --with-imap --with-imap-ssl --with-apxs2=/usr/bin/apxs --with-ldap --with-pear=/home/scrutinizer/.phpenv/versions/7.4.14/pear'
# @link https://pecl.php.net/
pecl_extensions:
- redis
- memcached
- apcu
- phalcon-5.8.0
ini:
memory_limit: -1
dependencies:
before:
- composer self-update
after:
# - composer require --dev phalcon/ide-stubs:5.8.0
# - composer require --dev phpunit/phpunit
# - composer require --dev squizlabs/php_codesniffer
# - composer require --dev phpstan/phpstan
- mysql -h 127.0.0.1 -u root -e 'create database zemit_core'
- chmod +x ./bin/* ./vendor/bin/* ./zemit
- mkdir .phalcon
- touch .env
- cp .env.scrutinizer .env
- ./bin/migration-list.sh
- ./bin/migration-run.sh
- echo "xdebug.mode=coverage" > /home/scrutinizer/.phpenv/versions/8.3.13/etc/conf.d/xdebug.ini
tests:
stop_on_failure: false
override:
- command: php-scrutinizer-run --enable-security-analysis
- command: phpcs-run
- command: ./vendor/bin/phpstan analyze
- command: ./vendor/bin/phpunit
coverage:
file: phpunit-clover.xml
format: php-clover
cache:
disabled: false
directories:
- ~/.composer
- ~/.npm
- vendor/
- node_modules/
checks:
php: true
filter:
excluded_paths:
- 'tests/' # test suite
- 'resources/' # other resources
- 'src/Functions/Dump.php' # debug features
dependency_paths:
- 'vendor/'
- 'node_modules/'