diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-03-18 03:17:18 +0800 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-03-17 15:17:18 -0400 |
commit | 4a6b011b159bd13c12cd973c3cfd61cd725bf7e0 (patch) | |
tree | 1c25e8e74d078064715dabb5b92d6e1d29346b97 /.drone.yml | |
parent | b3ad5eb414c67f96594a2863b4ada909cf2eea7f (diff) | |
download | gitea-4a6b011b159bd13c12cd973c3cfd61cd725bf7e0.tar.gz gitea-4a6b011b159bd13c12cd973c3cfd61cd725bf7e0.zip |
Add test environment for Mysql8 (#5234)
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml index 7fb66c2cd6..311d3fd611 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: |