File tree 4 files changed +26
-11
lines changed
4 files changed +26
-11
lines changed Original file line number Diff line number Diff line change
1
+ /tests export-ignore
2
+ /docs export-ignore
3
+ /.travis.yml export-ignore
4
+ /.scrutinizer.yml export-ignore
5
+ /.gitignore export-ignore
6
+ /.gitattributes export-ignore
7
+ /codecov.yml export-ignore
8
+ /phpunit.xml.dist export-ignore
Original file line number Diff line number Diff line change 1
1
inherit : true
2
2
3
- filter :
4
- paths : [src/*, tests/*]
3
+ build :
4
+ nodes :
5
+ analysis :
6
+ tests :
7
+ override : [php-scrutinizer-run]
5
8
6
9
checks :
7
10
php :
8
11
code_rating : true
9
12
duplication : true
10
13
14
+ filter :
15
+ paths : [src/*, tests/*]
Original file line number Diff line number Diff line change 7
7
matrix :
8
8
include :
9
9
- php : 5.6
10
- env : DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1
10
+ env : DB=MYSQL RECIPE_VERSION=1.0.x-dev PHPCS_TEST=1 PHPUNIT_TEST=1
11
11
- php : 7.0
12
- env : DB=PGSQL PHPUNIT_TEST=1
12
+ env : DB=PGSQL RECIPE_VERSION=1.1.x-dev PHPUNIT_TEST=1
13
13
- php : 7.1
14
- env : DB=MYSQL PHPUNIT_COVERAGE_TEST=1
14
+ env : DB=MYSQL RECIPE_VERSION=1.2.x-dev PHPUNIT_COVERAGE_TEST=1
15
+ - php : 7.2
16
+ env : DB=MYSQL RECIPE_VERSION=1.x-dev PHPUNIT_TEST=1
15
17
16
18
before_script :
17
19
- phpenv rehash
18
20
- phpenv config-rm xdebug.ini
19
21
20
22
- composer validate
21
- - composer require --prefer-dist --no-update silverstripe/recipe-core:1.0.x-dev
23
+ - composer require --prefer-dist --no-update silverstripe/recipe-core:$RECIPE_VERSION
22
24
- if [[ $DB == PGSQL ]]; then composer require --prefer-dist --no-update silverstripe/postgresql:2.0.x-dev; fi
23
25
- composer update
24
26
25
27
script :
26
28
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi
27
29
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
28
- - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=vendor/silverstripe/framework/phpcs.xml.dist src/ tests/ ; fi
30
+ - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs --standard=PSR2 src/ tests/ *.php ; fi
29
31
30
32
after_success :
31
33
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi
Original file line number Diff line number Diff line change 13
13
}
14
14
],
15
15
"require" : {
16
- "silverstripe/admin" : " ^1.0@dev " ,
17
- "silverstripe/framework" : " ^4.0@dev " ,
16
+ "silverstripe/admin" : " ^1" ,
17
+ "silverstripe/framework" : " ^4" ,
18
18
"monolog/monolog" : " ~1.11" ,
19
- "silverstripe/crontask" : " 2.x-dev "
19
+ "silverstripe/crontask" : " ^2 "
20
20
},
21
21
"require-dev" : {
22
22
"phpunit/phpunit" : " ^5.7" ,
23
- "squizlabs/php_codesniffer" : " ^3.0 "
23
+ "squizlabs/php_codesniffer" : " ^3"
24
24
},
25
25
"autoload" : {
26
26
"psr-4" : {
You can’t perform that action at this time.
0 commit comments