mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	ci: test mysql8 in place pgsql arm64
This commit is contained in:
		
							
								
								
									
										29
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -73,12 +73,11 @@ services:
 | 
				
			|||||||
      MYSQL_ALLOW_EMPTY_PASSWORD: yes
 | 
					      MYSQL_ALLOW_EMPTY_PASSWORD: yes
 | 
				
			||||||
      MYSQL_DATABASE: test
 | 
					      MYSQL_DATABASE: test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: mysql8
 | 
					  - name: pgsql
 | 
				
			||||||
    pull: default
 | 
					    pull: default
 | 
				
			||||||
    image: mysql:8.0
 | 
					    image: postgres:9.5
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      MYSQL_ALLOW_EMPTY_PASSWORD: yes
 | 
					      POSTGRES_DB: test
 | 
				
			||||||
      MYSQL_DATABASE: testgitea
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: mssql
 | 
					  - name: mssql
 | 
				
			||||||
    pull: default
 | 
					    pull: default
 | 
				
			||||||
@@ -220,14 +219,14 @@ steps:
 | 
				
			|||||||
      event:
 | 
					      event:
 | 
				
			||||||
        - tag
 | 
					        - tag
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: test-mysql8
 | 
					  - name: test-pgsql
 | 
				
			||||||
    pull: always
 | 
					    pull: always
 | 
				
			||||||
    image: golang:1.13
 | 
					    image: golang:1.13
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
 | 
					      - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
 | 
				
			||||||
      - apt-get install -y git-lfs
 | 
					      - apt-get install -y git-lfs
 | 
				
			||||||
      - timeout -s ABRT 20m make test-mysql8-migration
 | 
					      - timeout -s ABRT 20m make test-pgsql-migration
 | 
				
			||||||
      - timeout -s ABRT 20m make test-mysql8
 | 
					      - timeout -s ABRT 20m make test-pgsql
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      GOPROXY: off
 | 
					      GOPROXY: off
 | 
				
			||||||
      TAGS: bindata
 | 
					      TAGS: bindata
 | 
				
			||||||
@@ -299,11 +298,13 @@ workspace:
 | 
				
			|||||||
  path: src/code.gitea.io/gitea
 | 
					  path: src/code.gitea.io/gitea
 | 
				
			||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  - name: pgsql
 | 
					  - name: mysql8
 | 
				
			||||||
    pull: default
 | 
					    pull: default
 | 
				
			||||||
    image: postgres:9.5
 | 
					    image: mysql/mysql-server:8.0
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      POSTGRES_DB: test
 | 
					      MYSQL_ALLOW_EMPTY_PASSWORD: yes
 | 
				
			||||||
 | 
					      MYSQL_DATABASE: testgitea
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: ldap
 | 
					  - name: ldap
 | 
				
			||||||
    pull: default
 | 
					    pull: default
 | 
				
			||||||
    image: gitea/test-openldap:latest
 | 
					    image: gitea/test-openldap:latest
 | 
				
			||||||
@@ -328,16 +329,16 @@ steps:
 | 
				
			|||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
 | 
					      GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
 | 
				
			||||||
      GOSUMDB: sum.golang.org
 | 
					      GOSUMDB: sum.golang.org
 | 
				
			||||||
      TAGS: bindata sqlite sqlite_unlock_notify
 | 
					      TAGS: bindata
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: test-pgsql
 | 
					  - name: test-mysql8
 | 
				
			||||||
    pull: always
 | 
					    pull: always
 | 
				
			||||||
    image: golang:1.13
 | 
					    image: golang:1.13
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
 | 
					      - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
 | 
				
			||||||
      - apt-get install -y git-lfs
 | 
					      - apt-get install -y git-lfs
 | 
				
			||||||
      - timeout -s ABRT 20m make test-pgsql-migration
 | 
					      - timeout -s ABRT 20m make test-mysql8-migration
 | 
				
			||||||
      - timeout -s ABRT 20m make test-pgsql
 | 
					      - timeout -s ABRT 20m make test-mysql8
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      GOPROXY: off
 | 
					      GOPROXY: off
 | 
				
			||||||
      TAGS: bindata
 | 
					      TAGS: bindata
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user