Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
3c30ca82
Commit
3c30ca82
authored
8 years ago
by
Morris Jobke
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.drone.yml
+13
-10
13 additions, 10 deletions
.drone.yml
tests/lib/PreviewTest.php
+1
-1
1 addition, 1 deletion
tests/lib/PreviewTest.php
tests/lib/Traits/MountProviderTrait.php
+1
-1
1 addition, 1 deletion
tests/lib/Traits/MountProviderTrait.php
with
15 additions
and
12 deletions
.drone.yml
+
13
−
10
View file @
3c30ca82
...
@@ -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/php
5.6
:1.0.
6
image
:
nextcloudci/php
7.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
...
...
This diff is collapsed.
Click to expand it.
tests/lib/PreviewTest.php
+
1
−
1
View file @
3c30ca82
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
tests/lib/Traits/MountProviderTrait.php
+
1
−
1
View file @
3c30ca82
...
@@ -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
->
getMock
Builder
(
'\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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment