Skip to content

Commit

Permalink
Merge pull request #343 from nextcloud/pin_phpunit
Browse files Browse the repository at this point in the history
 Manually download phpunit 5.7 on travis
  • Loading branch information
ChristophWurst authored Mar 27, 2017
2 parents 0430fca + 534555c commit c5c0cb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ cache:
before_install:
- php --info

# Download phpunit 5.7
- wget https://phar.phpunit.de/phpunit-5.7.phar -O phpunit
- chmod u+x phpunit

# Set up DB
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
- if [[ "$DB" == 'mysql' ]]; then mysql -u root -e 'create database oc_autotest;'; fi
Expand Down Expand Up @@ -96,7 +100,7 @@ script:

# Run PHP tests
- cd tests
- phpunit --configuration phpunit.xml
- ../phpunit --configuration phpunit.xml
- if [[ "$PHP_COVERAGE" = "TRUE" ]]; then wget https://scrutinizer-ci.com/ocular.phar;
fi
- if [[ "$PHP_COVERAGE" = "TRUE" ]]; then php ocular.phar code-coverage:upload --format=php-clover
Expand Down

0 comments on commit c5c0cb1

Please sign in to comment.