-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
40 lines (36 loc) · 968 Bytes
/
.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
build:
dependencies:
before:
- currentDir=$(pwd)
- tempDir=$(mktemp -d)
- curl -sSL -o "$tempDir/cphalcon" https://codeload.github.com/phalcon/cphalcon/tar.gz/v3.4.3
- tar -C "$tempDir" -xzf "$tempDir/cphalcon"
- cd "$tempDir"/cphalcon-3.4.3/build
- ./install
- cd "$currentDir"
- rm -rf "$tempDir"
- echo 'extension=phalcon.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
nodes:
analysis:
environment:
php:
version: 7.2
cache:
directories:
- ~/.composer/cache
project_setup:
override: true
tests:
override:
- php-scrutinizer-run
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
tools:
external_code_coverage: true
build_failure_conditions:
- 'elements.rating(<= C).new.exists'
- 'issues.severity(>= MAJOR).new.exists'
- 'project.metric_change("scrutinizer.test_coverage", < 0)'