Browse Source

Hotfix for integration testing (#2473)

* Hotfix for integration testing

* Comment sqlite tests because of database locking issues
tags/v1.21.12.1
Thomas Boerger Lunny Xiao 8 years ago
parent
commit
fd85e25f5f
4 changed files with 14 additions and 18 deletions
  1. +12
    -11
      .drone.yml
  2. +1
    -1
      integrations/mysql.ini
  3. +1
    -1
      integrations/pgsql.ini
  4. +0
    -5
      integrations/sqlite.ini

+ 12
- 11
.drone.yml View File

@@ -39,17 +39,18 @@ pipeline:
when:
event: [ push, tag, pull_request ]

test-sqlite:
image: webhippie/golang:edge
pull: true
group: test
environment:
TAGS: bindata
GOPATH: /srv/app
commands:
- make test-sqlite
when:
event: [ push, tag, pull_request ]
# Commented until db locking have been resolved!
# test-sqlite:
# image: webhippie/golang:edge
# pull: true
# group: test
# environment:
# TAGS: bindata
# GOPATH: /srv/app
# commands:
# - make test-sqlite
# when:
# event: [ push, tag, pull_request ]

test-mysql:
image: webhippie/golang:edge


+ 1
- 1
integrations/mysql.ini View File

@@ -3,7 +3,7 @@ RUN_MODE = prod

[database]
DB_TYPE = mysql
HOST = 127.0.0.1:3306
HOST = mysql:3306
NAME = testgitea
USER = root
PASSWD =


+ 1
- 1
integrations/pgsql.ini View File

@@ -3,7 +3,7 @@ RUN_MODE = prod

[database]
DB_TYPE = postgres
HOST = 127.0.0.1:5432
HOST = pgsql:5432
NAME = testgitea
USER = postgres
PASSWD = postgres


+ 0
- 5
integrations/sqlite.ini View File

@@ -3,11 +3,6 @@ RUN_MODE = prod

[database]
DB_TYPE = sqlite3
HOST = 127.0.0.1:3306
NAME = testgitea
USER = gitea
PASSWD =
SSL_MODE = disable
PATH = :memory:

[repository]


Loading…
Cancel
Save