Skip to content

Commit 5d0a09c

Browse files
Fix/backward compatibility (#14)
* Add backwards php7.1 and symfony/process ^3.4 support * Readd travis matrix build
1 parent 6e1102f commit 5d0a09c

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.travis.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,24 @@ language: php
33
sudo: false
44

55
php:
6-
- 7.2
7-
- 7.3
6+
- 7.1
7+
- 7.2
8+
- 7.3
9+
10+
env:
11+
- PHPCS_FLAGS="--standard=PSR12"
812

913
matrix:
1014
fast_finish: true
11-
# include:
12-
# - php: 5.6
13-
# env:
14-
# - COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
15-
# - PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
15+
include:
16+
- php: 7.1
17+
env:
18+
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
19+
- PHPCS_FLAGS="--standard=PSR2"
20+
- php: 7.2
21+
env:
22+
- PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
23+
- PHPCS_FLAGS="--standard=PSR12"
1624

1725
before_install:
1826
- travis_retry composer self-update
@@ -23,7 +31,7 @@ install:
2331

2432
script:
2533
- mkdir -p build/logs
26-
- vendor/bin/phpcs --standard=PSR12 src/ tests/
34+
- vendor/bin/phpcs ${PHPCS_FLAGS} src/ tests/
2735
- vendor/bin/phpunit ${PHPUNIT_FLAGS}
2836

2937
after_script:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.2",
24-
"symfony/process": "^4.0",
23+
"php": "~7.1",
24+
"symfony/process": "^3.4 || ^4.0",
2525
"ext-iconv": "*",
2626
"ext-dom": "*",
2727
"ext-libxml": "*"

0 commit comments

Comments
 (0)