diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-06-21 16:41:29 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-06-21 17:49:40 +0300 |
commit | 8153290dd63b2aa781957281a2f4bcd008dd3bb0 (patch) | |
tree | bbcb11837ebf559c644d05a04b3e1d0aac89f54a /.drone.yml | |
parent | 0236535fd3e98a23a1fd3d4adfa472050a6c146e (diff) |
Add postgres to CI
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml index 9fde7b6ce5b..4d0a0aba2a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,7 +17,19 @@ build: - 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='' - ./autotest.sh sqlite + postgres: + image: morrisjobke/nextcloud-ci-php7:1.0 + commands: + - sleep 10 # gives the database enough time to initialize + - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues + - git submodule update --init + - ./autotest.sh pgsql compose: cache: image: redis + postgres: + image: postgres + environment: + - POSTGRES_USER=oc_autotest + - POSTGRES_PASSWORD=oc_autotest |