summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-03-06 10:50:21 +0100
committerMaxence Lange <maxence@artificial-owl.com>2019-03-07 06:53:14 -0100
commit3383843670129d128e281ea90cab7db9c21eb196 (patch)
treead8531d25ad32e744b7b5219f219c7c85836613d /.drone.yml
parent90779e4e6c69de94d331fcb616ff0db866e7d6dc (diff)
Add basic test skeleton
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index c4a6b6e9..34aa021f 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -69,6 +69,20 @@ pipeline:
when:
matrix:
TESTS: syntax-php7.3
+ php7.1:
+ image: nextcloudci/php7.1:php7.1-16
+ environment:
+ - APP_NAME=social
+ - CORE_BRANCH=stable15
+ commands:
+ - bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH ${DB}
+ - cd ../server/apps/$APP_NAME
+ - composer install
+ - phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
+ when:
+ matrix:
+ TESTS: php7.1
+
eslint:
image: node:lts-alpine
commands:
@@ -85,6 +99,32 @@ pipeline:
when:
matrix:
TESTS: vue-build
+services:
+ mysql:
+ image: mysql:5.7.22
+ environment:
+ - MYSQL_ROOT_PASSWORD=owncloud
+ - MYSQL_USER=oc_autotest
+ - MYSQL_PASSWORD=owncloud
+ - MYSQL_DATABASE=oc_autotest
+ command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
+ tmpfs:
+ - /var/lib/mysql
+ when:
+ matrix:
+ DB: mysql
+ postgres:
+ image: postgres:10
+ environment:
+ - POSTGRES_USER=oc_autotest
+ # This is required as nextcloud will create a separte user since the oc_autotest user can create roles
+ - POSTGRES_DB=oc_autotest_dummy
+ - POSTGRES_PASSWORD=owncloud
+ tmpfs:
+ - /var/lib/postgresql/data
+ when:
+ matrix:
+ DB: postgres
matrix:
include:
@@ -93,6 +133,12 @@ matrix:
- TESTS: syntax-php7.1
- TESTS: syntax-php7.2
- TESTS: syntax-php7.3
+ - TESTS: php7.1
+ DB: sqlite
+ - TESTS: php7.1
+ DB: mysql
+ - TESTS: php7.1
+ DB: postgres
- TESTS: eslint
- TESTS: vue-build