File tree 2 files changed +94
-0
lines changed
2 files changed +94
-0
lines changed Original file line number Diff line number Diff line change
1
+ build :
2
+ environment :
3
+ mysql : false
4
+ postgresql : false
5
+ redis : false
6
+ rabbitmq : false
7
+ mongodb : false
8
+ php :
9
+ version : 7.3
10
+
11
+ cache :
12
+ disabled : false
13
+ directories :
14
+ - ~/.composer/cache
15
+
16
+ dependencies :
17
+ override :
18
+ - composer install --no-interaction --prefer-dist
19
+
20
+ nodes :
21
+ analysis :
22
+ project_setup :
23
+ override : true
24
+ tests :
25
+ override :
26
+ - php-scrutinizer-run
27
+ - phpcs-run
28
+
29
+ checks :
30
+ php : true
31
+
32
+ tools :
33
+ external_code_coverage : true
34
+
35
+ build_failure_conditions :
36
+ - ' elements.rating(<= C).new.exists'
37
+ - ' issues.severity(>= MAJOR).new.exists'
38
+ - ' project.metric_change("scrutinizer.test_coverage", < -0.01)'
Original file line number Diff line number Diff line change
1
+ dist : trusty
2
+ sudo : false
3
+ language : php
4
+
5
+ php :
6
+ - 7.3
7
+ - 7.4snapshot
8
+ - nightly
9
+
10
+ cache :
11
+ directories :
12
+ - $HOME/.composer/cache
13
+
14
+ before_install :
15
+ - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
16
+ - composer self-update
17
+
18
+ install : travis_retry composer install
19
+
20
+ script :
21
+ - ./vendor/bin/phpunit
22
+
23
+ jobs :
24
+ allow_failures :
25
+ - php : 7.4snapshot
26
+ - php : nightly
27
+
28
+ include :
29
+ - stage : Code Quality
30
+ env : TEST_COVERAGE=1
31
+ before_script :
32
+ - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
33
+ - if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
34
+ script :
35
+ - ./vendor/bin/phpunit --coverage-clover ./clover.xml
36
+ after_script :
37
+ - wget https://scrutinizer-ci.com/ocular.phar
38
+ - php ocular.phar code-coverage:upload --format=php-clover ./clover.xml
39
+
40
+ - stage : Code Quality
41
+ env : CODE_STANDARD=1
42
+ script :
43
+ - ./vendor/bin/phpcs
44
+
45
+ - stage : Code Quality
46
+ env : STATIC_ANALYSIS=1
47
+ script :
48
+ - ./vendor/bin/phpstan analyse
49
+
50
+ - stage : Code Quality
51
+ env : MUTATION_TESTS=1
52
+ before_script :
53
+ - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
54
+ - if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for mutation tests"; exit 1; fi
55
+ script :
56
+ - ./vendor/bin/infection --threads=$(nproc) --min-msi=100 --min-covered-msi=100
You can’t perform that action at this time.
0 commit comments