-
-
Notifications
You must be signed in to change notification settings - Fork 575
Generate a default .gitlab-ci.yml file for new projects #181
Comments
@apaganobeleno I was going to work on this but wondering if I should wait for #184 to be merged?? |
@bscott, do you want to work on this? I can take care of it otherwise. |
@stanislas-m By all means please, I'll assign to you |
Here is my current work on this feature: This config will setup a runner to execute the tests for the created project, so I think the feature is at the same level as the Travis one. I have a remaining problem to solve: the way Gitlab CI manages services (the links to the databases, in this case) force the db host in the databases config file to be changed (I can't use 127.0.0.1: for postgresql it will create a « postgres » host, and so on for mysql). Do you have any idea on this? |
My first thought is you want to build this against the v0.8.0 branch, since the generators have been completely refactored. As to the database settings, not sure I fully understand the problem, but might I recommend looking at the env and envOr helper methods that let you use env variables in the database.yml file. |
No problem, I've just done the new version.
My problem is the way the database.yml is generated: test:
dialect: postgres
database: buffalo-test_test
user: postgres
password: postgres
host: 127.0.0.1 Since the PostgreSQL server is not on 127.0.0.1 in this case (it will be on a dynamic host created by Gitlab), the test will fail. So, we can either:
In my opinion, the third option is the best and would not break legacy setups. |
Closed by #305. |
See #36. This is the same case, but with a different provider.
The text was updated successfully, but these errors were encountered: