From d46122841bf1701341fbb1e7f737345080a71805 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 28 Sep 2018 14:01:54 +0800 Subject: [PATCH] fix drone --- .drone.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 03e777a8..61ac50f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,8 @@ clone: depth: 50 tags: true -mysql: +services: + mysql: image: mysql:5.7 environment: - MYSQL_DATABASE=xorm_test @@ -16,15 +17,15 @@ mysql: when: event: [ push, tag, pull_request ] -pgsql: - image: postgres:9.5 - environment: - - POSTGRES_USER=postgres - - POSTGRES_DB=xorm_test - commands: - - psql xorm_test postgres -c "create schema xorm" - when: - event: [ push, tag, pull_request ] + pgsql: + image: postgres:9.5 + environment: + - POSTGRES_USER=postgres + - POSTGRES_DB=xorm_test + commands: + - psql xorm_test postgres -c "create schema xorm" + when: + event: [ push, tag, pull_request ] pipeline: test: