From 12805da50aed59dce4a4e00dc397b0064d637f57 Mon Sep 17 00:00:00 2001 From: Synchro Date: Tue, 10 Nov 2015 15:17:46 +0100 Subject: [PATCH] Travis & PHPUnit tweaks --- .travis.yml | 4 ++-- test/bootstrap.php | 10 ++++++++++ test/phpmailerTest.php | 2 -- travis.phpunit.xml.dist | 5 ----- 4 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 test/bootstrap.php diff --git a/.travis.yml b/.travis.yml index 62719984..4f9d1b94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_install: - sudo apt-get update -qq - sudo apt-get install -y -qq postfix install: - - composer install + - composer update before_script: - sudo service postfix stop - smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 & @@ -27,7 +27,7 @@ before_script: - sudo cp fakesendmail.sh /usr/sbin/sendmail - echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini script: - - phpunit --configuration ../travis.phpunit.xml.dist + - phpunit --configuration ../travis.phpunit.xml.dist --bootstrap tests/bootstrap.php after_script: - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml diff --git a/test/bootstrap.php b/test/bootstrap.php new file mode 100644 index 00000000..6209ed15 --- /dev/null +++ b/test/bootstrap.php @@ -0,0 +1,10 @@ +./test/ - - - ./extras - - languages