Skip to content

Commit c53298b

Browse files
xaloppmmoll
authored andcommitted
improve development and CI process
1 parent 4a1384d commit c53298b

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

.travis.yml

+2-11
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@ php:
77
- 7.0
88
- 7.1
99
- 7.2
10-
env:
11-
global:
12-
- PHPCS_DIR=vendor/squizlabs/php_codesniffer
13-
- MO4CS_DIR=vendor/squizlabs/php_codesniffer/src/Standards/MO4
1410

1511
before_script:
1612
- phpenv config-rm xdebug.ini
1713
- 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/)
2314

2415
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

phpcs.xml.dist

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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>

phpunit.xml.dist

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>

0 commit comments

Comments
 (0)