forked from commercetools/commercetools-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
34 lines (34 loc) · 1.33 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
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
php_code_sniffer: true
php_changetracking: true
php_mess_detector: true
sensiolabs_security_checker: true
php_cs_fixer:
config: { level: psr2 }
before_commands:
- composer config -g github-oauth.github.com $GITHUB_OAUTH_TOKEN
- composer global require hirak/prestissimo
- composer install --prefer-dist -o
build:
environment:
php: '7.0'
dependencies:
before:
#Only 5.4 uses APC
- if [[ "`phpenv version-name`" =~ "^5.4" ]] && [ "`phpenv version-name`" != "hhvm" ]; then echo -e "apc.enabled=1\napc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
#+5.5 uses APCU
- if [[ ! "`phpenv version-name`" =~ "^5.4" ]] && [ "`phpenv version-name`" != "hhvm" ]; then printf "\n"| echo -e "apc.enabled=1\napc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
tests:
override:
-
command: vendor/bin/behat -f progress
-
command: vendor/bin/phpunit -d zend.enable_gc=0 --coverage-clover=coverage0
coverage:
file: 'coverage0'
format: 'php-clover'
filter:
excluded_paths: [build/*, tests/*, docroot/*, features/*]