Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix for integration testing #2473

Merged
merged 2 commits into from
Sep 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not general, just for drone. We will not be able to run tests on local env (without modifying host). Same for pgsql.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will focus on ci integration for sure

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but could we run the test locally?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only if the value can be provided via some environment variable. But beside that you can also run drone exec locally.

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