Skip to content

Commit e36fe29

Browse files
authored
Merge pull request #39 from UseMuffin/travis
Test with lowest dep. versions.
2 parents 69306d1 + 6a7eec1 commit e36fe29

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.semver

Lines changed: 0 additions & 6 deletions
This file was deleted.

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,36 @@ matrix:
1919
fast_finish: true
2020

2121
include:
22-
- php: 7.0
22+
- php: 7.1
2323
env: PHPCS=1 DEFAULT=0
2424

25-
- php: 7.0
25+
- php: 7.1
2626
env: PHPSTAN=1 DEFAULT=0
2727

28+
- php: 5.6
29+
env: PREFER_LOWEST=1
30+
2831
before_script:
29-
- if [[ $TRAVIS_PHP_VERSION != 7.0 ]]; then phpenv config-rm xdebug.ini; fi
32+
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]]; then phpenv config-rm xdebug.ini; fi
3033

3134
- if [[ $DB = 'mysql' ]]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
3235
- if [[ $DB = 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
3336

34-
- composer install --prefer-dist --no-interaction
37+
- if [[ $PREFER_LOWEST != 1 ]]; then composer update --no-interaction; fi
38+
- if [[ $PREFER_LOWEST == 1 ]]; then composer update --no-interaction --prefer-lowest --prefer-stable; fi
3539

3640
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:"^3.0"; fi
3741

3842
script:
39-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then vendor/bin/phpunit; fi
40-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
43+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.1 ]]; then vendor/bin/phpunit; fi
44+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.1 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
4145

4246
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -n -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
4347

4448
- if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.9 && vendor/bin/phpstan analyse -l 5 src; fi
4549

4650
after_success:
47-
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
51+
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.1 ]]; then bash <(curl -s https://codecov.io/bash); fi
4852

4953
notifications:
5054
email: false

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)