File tree 3 files changed +19
-11
lines changed
3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 7
7
- 7.0
8
8
- 7.1
9
9
- 7.2
10
- env :
11
- global :
12
- - PHPCS_DIR=vendor/squizlabs/php_codesniffer
13
- - MO4CS_DIR=vendor/squizlabs/php_codesniffer/src/Standards/MO4
14
10
15
11
before_script :
16
12
- phpenv config-rm xdebug.ini
17
13
- composer install
18
- - mkdir -p $MO4CS_DIR
19
- - cp ruleset.xml $MO4CS_DIR/
20
- - cp -R Sniffs $MO4CS_DIR/
21
- - cp -R Tests $MO4CS_DIR/
22
- - (cd $PHPCS_DIR/src/Standards ; git clone https://github.com/djoos/Symfony-coding-standard.git Symfony ; mv Symfony/Symfony/* Symfony/)
23
14
24
15
script :
25
- - (cd $PHPCS_DIR ; ../../ bin/phpunit --filter MO4)
26
- - $PHPCS_DIR /bin/phpcs $MO4CS_DIR --standard=$PHPCS_DIR/phpcs.xml.dist --report=full -np
16
+ - vendor/ bin/phpunit --filter MO4
17
+ - vendor /bin/phpcs MO4 --report=full -np
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" PHP_CodeSniffer" >
3
+ <description >The coding standard for PHP_CodeSniffer itself.</description >
4
+
5
+ <exclude-pattern >*/Tests/*\.(inc|css|js)</exclude-pattern >
6
+ <exclude-pattern >vendor/*</exclude-pattern >
7
+
8
+ <rule ref =" vendor/squizlabs/php_codesniffer/phpcs.xml.dist" />
9
+ </ruleset >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit backupGlobals =" true" beStrictAboutTestsThatDoNotTestAnything =" false" bootstrap =" vendor/squizlabs/php_codesniffer/tests/bootstrap.php" >
3
+ <testsuites >
4
+ <testsuite name =" PHP_CodeSniffer Test Suite" >
5
+ <file >vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php</file >
6
+ </testsuite >
7
+ </testsuites >
8
+ </phpunit >
You can’t perform that action at this time.
0 commit comments