Skip to content
Snippets Groups Projects
Commit 3c30ca82 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #330 from nextcloud/php7.0-ci

PHP 7.0 CI
parents 4aae1570 aab741e4
No related branches found
No related tags found
No related merge requests found
...@@ -8,38 +8,41 @@ build: ...@@ -8,38 +8,41 @@ build:
commands: commands:
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init - git submodule update --init
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
- NOCOVERAGE=true ./autotest.sh sqlite - NOCOVERAGE=true ./autotest.sh sqlite
sqlite-php5.5: sqlite-php5.5:
image: nextcloudci/php5.5:1.0.7 image: nextcloudci/php5.5:1.0.7
commands: commands:
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init - git submodule update --init
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
- NOCOVERAGE=true ./autotest.sh sqlite - NOCOVERAGE=true ./autotest.sh sqlite
sqlite: sqlite-php5.6:
image: nextcloudci/php5.6:1.0.6 image: nextcloudci/php5.6:1.0.6
commands: commands:
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init - git submodule update --init
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass='' - NOCOVERAGE=true ./autotest.sh sqlite
- ./autotest.sh sqlite sqlite-php7.0:
mysql: image: nextcloudci/php7.0:1.0.9
commands:
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init
- NOCOVERAGE=true ./autotest.sh sqlite
mysql-php5.6:
image: nextcloudci/php5.6:1.0.6 image: nextcloudci/php5.6:1.0.6
commands: commands:
- sleep 15 # gives the database enough time to initialize - sleep 15 # gives the database enough time to initialize
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init - git submodule update --init
- ./autotest.sh mysql - NOCOVERAGE=true ./autotest.sh mysql
postgres: postgres-php5.6:
image: nextcloudci/php5.6:1.0.6 image: nextcloudci/php5.6:1.0.6
commands: commands:
- sleep 10 # gives the database enough time to initialize - sleep 10 # gives the database enough time to initialize
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init - git submodule update --init
- ./autotest.sh pgsql - NOCOVERAGE=true ./autotest.sh pgsql
integration: integration:
image: nextcloudci/php5.6:1.0.6 image: nextcloudci/php7.0:1.0.9
commands: commands:
- rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init - git submodule update --init
......
...@@ -783,7 +783,7 @@ class PreviewTest extends TestCase { ...@@ -783,7 +783,7 @@ class PreviewTest extends TestCase {
$filename = $this->samples[$sampleId]['sampleFileName']; $filename = $this->samples[$sampleId]['sampleFileName'];
$splitFileName = pathinfo($filename); $splitFileName = pathinfo($filename);
$extension = $splitFileName['extension']; $extension = $splitFileName['extension'];
$correction = ($extension === 'eps') ? 1 : 0; $correction = ($extension === 'eps' && PHP_MAJOR_VERSION < 7) ? 1 : 0;
$maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight']; $maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight'];
$maxPreviewHeight = $maxPreviewHeight - $correction; $maxPreviewHeight = $maxPreviewHeight - $correction;
......
...@@ -41,7 +41,7 @@ trait MountProviderTrait { ...@@ -41,7 +41,7 @@ trait MountProviderTrait {
protected function setUpMountProviderTrait() { protected function setUpMountProviderTrait() {
$this->storageFactory = new StorageFactory(); $this->storageFactory = new StorageFactory();
$this->mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider'); $this->mountProvider = $this->getMockBuilder('\OCP\Files\Config\IMountProvider')->getMock();
$this->mountProvider->expects($this->any()) $this->mountProvider->expects($this->any())
->method('getMountsForUser') ->method('getMountsForUser')
->will($this->returnCallback(function (IUser $user) { ->will($this->returnCallback(function (IUser $user) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment