diff --git a/.travis.yml b/.travis.yml index 089c60a..4b9389f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,16 @@ language: php - php: - 7.0 +os: + - linux +sudo: required +dist: trusty + before_script: + - wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz + - tar xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz + - sudo mv wkhtmltox/bin/wkhtmltopdf /usr/local/bin - composer self-update - composer install --prefer-source --no-interaction diff --git a/tests/Report/PdfReportTest.php b/tests/Report/PdfReportTest.php index 9a25cc7..575766a 100644 --- a/tests/Report/PdfReportTest.php +++ b/tests/Report/PdfReportTest.php @@ -30,7 +30,10 @@ protected function setUp() 'page-width' => '21cm', 'page-height' => '29.7cm', ]); - $this->pdf->setBinPath(__DIR__.'/../../wkhtmltopdf.exe'); + + if ($this->isWindows()) { + $this->pdf->setBinPath(__DIR__.'/../../wkhtmltopdf.exe'); + } } public function testPdfRender()