Skip to content

Commit

Permalink
Fix/backward compatibility (#14)
Browse files Browse the repository at this point in the history
* Add backwards php7.1 and symfony/process ^3.4 support
* Readd travis matrix build
  • Loading branch information
icanhazstring authored Jan 25, 2019
1 parent 6e1102f commit 5d0a09c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
24 changes: 16 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@ language: php
sudo: false

php:
- 7.2
- 7.3
- 7.1
- 7.2
- 7.3

env:
- PHPCS_FLAGS="--standard=PSR12"

matrix:
fast_finish: true
# include:
# - php: 5.6
# env:
# - COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
# - PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
include:
- php: 7.1
env:
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- PHPCS_FLAGS="--standard=PSR2"
- php: 7.2
env:
- PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"
- PHPCS_FLAGS="--standard=PSR12"

before_install:
- travis_retry composer self-update
Expand All @@ -23,7 +31,7 @@ install:

script:
- mkdir -p build/logs
- vendor/bin/phpcs --standard=PSR12 src/ tests/
- vendor/bin/phpcs ${PHPCS_FLAGS} src/ tests/
- vendor/bin/phpunit ${PHPUNIT_FLAGS}

after_script:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}
],
"require": {
"php": "^7.2",
"symfony/process": "^4.0",
"php": "~7.1",
"symfony/process": "^3.4 || ^4.0",
"ext-iconv": "*",
"ext-dom": "*",
"ext-libxml": "*"
Expand Down

0 comments on commit 5d0a09c

Please sign in to comment.