Skip to content

Commit 053e8e4

Browse files
xaloppmmoll
authored andcommitted
travis: clean up build and test
1 parent d2df44e commit 053e8e4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@ 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
1014

1115
before_script:
1216
- phpenv config-rm xdebug.ini
1317
- composer install
14-
- mkdir -p vendor/squizlabs/php_codesniffer/src/Standards/MO4
15-
- cp ruleset.xml vendor/squizlabs/php_codesniffer/src/Standards/MO4/
16-
- cp -R Sniffs vendor/squizlabs/php_codesniffer/src/Standards/MO4/
17-
- cp -R Tests vendor/squizlabs/php_codesniffer/src/Standards/MO4/
18-
- (cd vendor/squizlabs/php_codesniffer/CodeSniffer/Standards ; git clone https://github.com/djoos/Symfony-coding-standard.git Symfony ; mv Symfony/Symfony/* Symfony/)
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/)
1923

2024
script:
21-
- (cd vendor/squizlabs/php_codesniffer ; ../../bin/phpunit --filter MO4)
22-
- (mkdir -p vendor/squizlabs/php_codesniffer/src/Standards/PHPCS ; cp vendor/squizlabs/php_codesniffer/phpcs.xml.dist vendor/squizlabs/php_codesniffer/src/Standards/PHPCS/ruleset.xml)
23-
- ./vendor/squizlabs/php_codesniffer/bin/phpcs ./vendor/squizlabs/php_codesniffer/src/Standards/MO4/Sniffs --standard=PHPCS --report=summary -np
25+
- (cd $PHPCS_DIR ; ../../bin/phpunit --filter MO4)
26+
- $PHPCS_DIR/bin/phpcs $MO4CS_DIR/Sniffs --standard=$PHPCS_DIR/phpcs.xml.dist --report=summary -np

0 commit comments

Comments
 (0)