Skip to content

Commit

Permalink
Hotfix for integration testing (#2473)
Browse files Browse the repository at this point in the history
* Hotfix for integration testing

* Comment sqlite tests because of database locking issues
  • Loading branch information
tboerger authored and lunny committed Sep 10, 2017
1 parent 4b8fef1 commit fd85e25
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
23 changes: 12 additions & 11 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion integrations/mysql.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion integrations/pgsql.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions integrations/sqlite.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fd85e25

Please sign in to comment.