-
Notifications
You must be signed in to change notification settings - Fork 1
/
.scrutinizer.yml
42 lines (42 loc) · 1.24 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
build:
environment:
php:
version: 7.4
compile_options: '--enable-cli --with-pdo-mysql --with-openssl --with-imap-ssl --enable-bcmath --enable-mbstring --with-zlib --with-curl --enable-pcntl --enable-gd --with-xsl --with-sodium --with-zlib --without-pear'
pecl_extensions:
- zip
- redis
- pcov
services:
mysql:
image: "mysql:8"
command: --default-authentication-plugin=mysql_native_password
ports:
- 3306
env:
MYSQL_DATABASE: test
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_ROOT_PASSWORD: ''
dependencies:
override:
- composer install
project_setup:
override:
- export DB_USERNAME=root
- chmod -R 777 storage
- chmod -R 777 bootstrap/cache
- php artisan passport:keys
tests:
override:
- command: php-scrutinizer-run
- command: phpcs-run
use_website_config: true
- command: php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude="~vendor~" ./vendor/bin/phpunit --stop-on-error --stop-on-failure --coverage-clover coverage.xml
coverage:
file: coverage.xml
format: clover
cache:
directories:
- node_modules/
- vendor/
- ~/.composer/cache/