diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-06-12 12:03:11 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-06-12 12:03:22 +0300 |
commit | 663e867f8957072567d341da44552532e43d487d (patch) | |
tree | 9f1a16c4587405542bd5d600a284fe868cd6a8df /.travis.yml | |
parent | 799d70a4a613ffa38006691fd17ebbb7cc855c70 (diff) |
Install phpunit via composer
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index edda915eb..50274d825 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,20 +43,12 @@ 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 - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';"; fi - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';"; fi - - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.4' ]; then curl -s -o $HOME/.phpenv/versions/5.4/bin/phpunit - https://phar.phpunit.de/phpunit-4.8.9.phar; fi" - - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.4' ]; then chmod +x $HOME/.phpenv/versions/5.4/bin/phpunit; - fi" - composer self-update - make install-composer-deps - make start-imap-docker @@ -101,7 +93,7 @@ script: # Run PHP tests - cd tests - - ../phpunit --configuration phpunit.xml + - ../vendor/phpunit/phpunit/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 |