-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from LarsGit223/fix-travis-php7
Fix travis test for PHP7.1 (wrong PHPUnit version)
- Loading branch information
Showing
1 changed file
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
language: php | ||
sudo: false | ||
php: | ||
- "7.3" | ||
- "7.2" | ||
- "7.1" | ||
- "7.0" | ||
- "5.6" | ||
env: | ||
- DOKUWIKI=master | ||
- DOKUWIKI=stable | ||
before_install: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh && rm .gitignore | ||
install: sh travis.sh | ||
script: cd _test && phpunit --stderr --group plugin_odt | ||
before_install: | ||
wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh && rm .gitignore | ||
install: | ||
# Force PHPUnit 7 if $TRAVIS_PHP_VERSION > '7.1' | ||
- if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar; fi | ||
- if [[ $TRAVIS_PHP_VERSION > '7.1' ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi | ||
# Force PHPUnit 6.4.3 if $TRAVIS_PHP_VERSION <= '7.1' | ||
- if [[ $TRAVIS_PHP_VERSION = '7.0' || $TRAVIS_PHP_VERSION = '7.1' ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-6.4.3.phar; fi | ||
- if [[ $TRAVIS_PHP_VERSION = '7.0' || $TRAVIS_PHP_VERSION = '7.1' ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi | ||
# Force PHPUnit 5.7.9 if $TRAVIS_PHP_VERSION < '7.0' | ||
- if [[ $TRAVIS_PHP_VERSION < '7.0' ]]; then wget -O ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-5.7.9.phar; fi | ||
- if [[ $TRAVIS_PHP_VERSION < '7.0' ]]; then chmod 755 ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit; fi | ||
- sh travis.sh | ||
before_script: | ||
- test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- phpunit --version | ||
script: | ||
- cd _test && phpunit --verbose --stderr --group plugin_odt |