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 1 commit
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
Next Next commit
Hotfix for integration testing
  • Loading branch information
tboerger committed Sep 7, 2017
commit 63e59fd6927e6badb871c6e69f436a8a46bfcaa2
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