Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
d0a3d179
Unverified
Commit
d0a3d179
authored
Oct 18, 2016
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
add 4 byte mysql test run
Signed-off-by:
Morris Jobke
<
hey@morrisjobke.de
>
parent
9356a0e5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.drone.yml
+22
-0
22 additions, 0 deletions
.drone.yml
autotest.sh
+23
-9
23 additions, 9 deletions
autotest.sh
with
45 additions
and
9 deletions
.drone.yml
+
22
−
0
View file @
d0a3d179
...
...
@@ -148,6 +148,14 @@ pipeline:
matrix
:
DB
:
postgres
PHP
:
5.6
mysqlmb4-php5.6
:
image
:
nextcloudci/php5.6:php5.6-2
commands
:
-
NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
when
:
matrix
:
DB
:
mysqlmb4
PHP
:
5.6
integration-capabilities_features
:
image
:
nextcloudci/integration-php7.0:integration-php7.0-1
commands
:
...
...
@@ -368,6 +376,8 @@ matrix:
PHP
:
5.6
-
DB
:
postgres
PHP
:
5.6
-
DB
:
mysqlmb4
PHP
:
5.6
services
:
cache
:
...
...
@@ -390,3 +400,15 @@ services:
when
:
matrix
:
DB
:
mysql
mysqlmb4
:
image
:
mysql
environment
:
-
MYSQL_ROOT_PASSWORD=owncloud
-
MYSQL_USER=oc_autotest
-
MYSQL_PASSWORD=owncloud
-
MYSQL_DATABASE=oc_autotest
volumes
:
-
/drone/src/github.com/nextcloud/server/tests/docker/mysqlmb4:/etc/mysql/conf.d
when
:
matrix
:
DB
:
mysqlmb4
This diff is collapsed.
Click to expand it.
autotest.sh
+
23
−
9
View file @
d0a3d179
...
...
@@ -210,6 +210,7 @@ function execute_tests {
fi
fi
if
[
"
$DB
"
==
"mysqlmb4"
]
;
then
if
[
!
-z
"
$USEDOCKER
"
]
;
then
echo
"Fire up the mysql docker"
DOCKER_CONTAINER_ID
=
$(
docker run
\
-v
$BASEDIR
/tests/docker/mysqlmb4:/etc/mysql/conf.d
\
...
...
@@ -221,6 +222,19 @@ function execute_tests {
DATABASEHOST
=
$(
docker inspect
--format
=
"{{.NetworkSettings.IPAddress}}"
"
$DOCKER_CONTAINER_ID
"
)
else
if
[
-z
"
$DRONE
"
]
;
then
# no need to drop the DB when we are on CI
if
[
"mysql"
!=
"
$(
mysql
--version
|
grep
-o
mysql
)
"
]
;
then
echo
"Your mysql binary is not provided by mysql"
echo
"To use the docker container set the USEDOCKER environment variable"
exit
-1
fi
mysql
-u
"
$DATABASEUSER
"
-powncloud
-e
"DROP DATABASE IF EXISTS
$DATABASENAME
"
-h
$DATABASEHOST
||
true
else
DATABASEHOST
=
127.0.0.1
fi
fi
echo
"Waiting for MySQL(utf8mb4) initialisation ..."
if
!
apps/files_external/tests/env/wait-for-connection
$DATABASEHOST
3306 60
;
then
...
...
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
sign in
to comment