Skip to content

Commit

Permalink
Upgrade phpspec for PHP nightly test run
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jul 22, 2020
1 parent 1100333 commit 184c53b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ matrix:
env: COMPOSER_OPTS="--prefer-lowest"
- php: nightly
dist: bionic
env: COMPOSER_OPTS="--ignore-platform-reqs"
env: COMPOSER_OPTS="--ignore-platform-reqs" UPGRADE_PHPSPEC="yes"
- php: nightly
dist: bionic
env: COMPOSER_OPTS="--ignore-platform-reqs --prefer-lowest"
env: COMPOSER_OPTS="--ignore-platform-reqs --prefer-lowest" UPGRADE_PHPSPEC="yes"
allow_failures:
- php: nightly
env: COMPOSER_OPTS="--ignore-platform-reqs"
env: COMPOSER_OPTS="--ignore-platform-reqs" UPGRADE_PHPSPEC="yes"
- php: nightly
env: COMPOSER_OPTS="--ignore-platform-reqs --prefer-lowest"
env: COMPOSER_OPTS="--ignore-platform-reqs --prefer-lowest" UPGRADE_PHPSPEC="yes"

before_install:
- mkdir tests/files
Expand All @@ -70,6 +70,7 @@ before_script:
- wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer && chmod +x php-cs-fixer

script:
- if [[ "${UPGRADE_PHPSPEC}" == "yes" ]]; then composer require --dev --no-update phpspec/phpspec:^4.0 fi
- vendor/bin/phpunit tests/ftp/*Tests.php
- vendor/bin/phpunit --exclude-group integration --coverage-text --coverage-clover coverage.xml
- vendor/bin/phpspec run
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ext-fileinfo": "*"
},
"require-dev": {
"phpspec/phpspec": "^3.4",
"phpspec/phpspec": "^3.4 || ^4.0",
"phpunit/phpunit": "^5.7.26"
},
"autoload": {
Expand Down

0 comments on commit 184c53b

Please sign in to comment.