1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-31 22:58:35 +00:00

Add test environment for Mysql8 (#5234)

This commit is contained in:
Lunny Xiao
2019-03-18 03:17:18 +08:00
committed by techknowlogick
parent b3ad5eb414
commit 4a6b011b15
4 changed files with 120 additions and 4 deletions

View File

@@ -164,6 +164,22 @@ pipeline:
when:
event: [ tag ]
test-mysql8:
image: golang:1.11
pull: true
group: test
environment:
TAGS: bindata
TEST_LDAP: "1"
commands:
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
- apt-get install -y git-lfs
- (sleep 1200 && (echo 'kill -ABRT $(pidof gitea) $(pidof integrations.test)' | sh)) &
- make test-mysql8-migration
- make test-mysql8
when:
event: [ push, tag, pull_request ]
test-pgsql:
image: golang:1.12
pull: true
@@ -406,6 +422,15 @@ services:
when:
event: [ push, tag, pull_request ]
mysql8:
image: mysql:8.0
environment:
- MYSQL_DATABASE=test
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=testgitea
when:
event: [ push, tag, pull_request ]
pgsql:
image: postgres:9.5
environment: