run postgresql 10 tests in drone
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
da3004b8f5
commit
95d0b3d490
22
.drone.yml
22
.drone.yml
|
@ -299,6 +299,7 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
DB: postgres
|
DB: postgres
|
||||||
PHP: 5.6
|
PHP: 5.6
|
||||||
|
POSTGRES: 9
|
||||||
postgres-php7.0:
|
postgres-php7.0:
|
||||||
image: nextcloudci/php7.0:php7.0-16
|
image: nextcloudci/php7.0:php7.0-16
|
||||||
commands:
|
commands:
|
||||||
|
@ -746,12 +747,19 @@ matrix:
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
- DB: postgres
|
- DB: postgres
|
||||||
PHP: 5.6
|
PHP: 5.6
|
||||||
|
POSTGRES: 9
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
- DB: postgres
|
- DB: postgres
|
||||||
PHP: 7.0
|
PHP: 7.0
|
||||||
|
POSTGRES: 9
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
- DB: postgres
|
- DB: postgres
|
||||||
PHP: 7.1
|
PHP: 7.1
|
||||||
|
POSTGRES: 9
|
||||||
|
ENABLE_REDIS: true
|
||||||
|
- DB: postgres
|
||||||
|
PHP: 7.1
|
||||||
|
POSTGRES: 10
|
||||||
ENABLE_REDIS: true
|
ENABLE_REDIS: true
|
||||||
- DB: mysqlmb4
|
- DB: mysqlmb4
|
||||||
PHP: 5.6
|
PHP: 5.6
|
||||||
|
@ -833,7 +841,7 @@ services:
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
ENABLE_REDIS_CLUSTER: true
|
ENABLE_REDIS_CLUSTER: true
|
||||||
postgres:
|
postgres-9:
|
||||||
image: postgres:9
|
image: postgres:9
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=oc_autotest
|
- POSTGRES_USER=oc_autotest
|
||||||
|
@ -843,6 +851,18 @@ services:
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
DB: postgres
|
DB: postgres
|
||||||
|
POSTGRES: 9
|
||||||
|
postgres-10:
|
||||||
|
image: postgres:10
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=oc_autotest
|
||||||
|
- POSTGRES_PASSWORD=owncloud
|
||||||
|
tmpfs:
|
||||||
|
- /var/lib/postgresql/data
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
DB: postgres
|
||||||
|
POSTGRES: 10
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -308,11 +308,11 @@ function execute_tests {
|
||||||
echo "Postgres is up."
|
echo "Postgres is up."
|
||||||
else
|
else
|
||||||
if [ ! -z "$DRONE" ] ; then
|
if [ ! -z "$DRONE" ] ; then
|
||||||
DATABASEHOST=postgres
|
DATABASEHOST="postgres-$POSTGRES"
|
||||||
fi
|
fi
|
||||||
echo "Waiting for Postgres to be available ..."
|
echo "Waiting for Postgres to be available ..."
|
||||||
if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
|
if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
|
||||||
echo "[ERROR] Waited 60 seconds, no response" >&2
|
echo "[ERROR] Waited 60 seconds for $DATABASEHOST, no response" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Give it 10 additional seconds ..."
|
echo "Give it 10 additional seconds ..."
|
||||||
|
|
Loading…
Reference in New Issue