From dd88cc49d8dbfa2e5ab2c639ce69dab8ba4b697d Mon Sep 17 00:00:00 2001
From: Antoine GIRARD <sapk@sapk.fr>
Date: Sun, 12 Jan 2020 08:42:02 +0100
Subject: [PATCH] ci: test mysql8 in place pgsql arm64

---
 .drone.yml | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/.drone.yml b/.drone.yml
index f813f75731..646d70a336 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -73,12 +73,11 @@ services:
       MYSQL_ALLOW_EMPTY_PASSWORD: yes
       MYSQL_DATABASE: test
 
-  - name: mysql8
+  - name: pgsql
     pull: default
-    image: mysql:8.0
+    image: postgres:9.5
     environment:
-      MYSQL_ALLOW_EMPTY_PASSWORD: yes
-      MYSQL_DATABASE: testgitea
+      POSTGRES_DB: test
 
   - name: mssql
     pull: default
@@ -220,14 +219,14 @@ steps:
       event:
         - tag
 
-  - name: test-mysql8
+  - name: test-pgsql
     pull: always
     image: golang:1.13
     commands:
       - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
       - apt-get install -y git-lfs
-      - timeout -s ABRT 20m make test-mysql8-migration
-      - timeout -s ABRT 20m make test-mysql8
+      - timeout -s ABRT 20m make test-pgsql-migration
+      - timeout -s ABRT 20m make test-pgsql
     environment:
       GOPROXY: off
       TAGS: bindata
@@ -299,11 +298,13 @@ workspace:
   path: src/code.gitea.io/gitea
 
 services:
-  - name: pgsql
+  - name: mysql8
     pull: default
-    image: postgres:9.5
+    image: mysql/mysql-server:8.0
     environment:
-      POSTGRES_DB: test
+      MYSQL_ALLOW_EMPTY_PASSWORD: yes
+      MYSQL_DATABASE: testgitea
+
   - name: ldap
     pull: default
     image: gitea/test-openldap:latest
@@ -328,16 +329,16 @@ steps:
     environment:
       GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
       GOSUMDB: sum.golang.org
-      TAGS: bindata sqlite sqlite_unlock_notify
+      TAGS: bindata
 
-  - name: test-pgsql
+  - name: test-mysql8
     pull: always
     image: golang:1.13
     commands:
       - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
       - apt-get install -y git-lfs
-      - timeout -s ABRT 20m make test-pgsql-migration
-      - timeout -s ABRT 20m make test-pgsql
+      - timeout -s ABRT 20m make test-mysql8-migration
+      - timeout -s ABRT 20m make test-mysql8
     environment:
       GOPROXY: off
       TAGS: bindata