Skip to content

Commit c7757e3

Browse files
authored
Merge pull request #2920 from lcobucci/improve-configuration
Improve build configuration
2 parents 09e072d + ed34508 commit c7757e3

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.scrutinizer.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
build:
2-
environment:
3-
php:
4-
version: 7.1
2+
nodes:
3+
analysis:
4+
environment:
5+
php:
6+
version: 7.1
7+
cache:
8+
disabled: false
9+
directories:
10+
- ~/.composer/cache
11+
12+
project_setup:
13+
override: true
14+
tests:
15+
override:
16+
- php-scrutinizer-run
517

618
before_commands:
7-
- "composer install --no-dev --prefer-source"
19+
- "composer install --no-dev --prefer-source -a"
820

921
tools:
1022
external_code_coverage:
@@ -16,8 +28,6 @@ filter:
1628

1729
build_failure_conditions:
1830
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
19-
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
2031
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
2132
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
22-
- 'patches.label("Doc Comments").new.exists' # No new doc comments patches allowed
2333
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed

tests/continuousphp/oci8.phpunit.continuousphp.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
3-
backupGlobals="false"
3+
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
44
colors="true"
5-
bootstrap="../../vendor/autoload.php"
5+
verbose="true"
6+
beStrictAboutOutputDuringTests="true"
7+
beStrictAboutTodoAnnotatedTests="true"
8+
failOnRisky="true"
69
>
710
<php>
811
<ini name="error_reporting" value="-1" />

0 commit comments

Comments
 (0)