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

When trying to use this tool on anything other than Travis it is hard… #218

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

kiklop74
Copy link
Contributor

…er to make ci script look lean because so many options have to be crammed in the install command line.

It would be most useful to have more install options mapped to ENV variables.

Fixes #217

@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Merging #218 (942cfdf) into master (409180a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #218      +/-   ##
============================================
+ Coverage     84.51%   84.55%   +0.03%     
- Complexity      683      688       +5     
============================================
  Files            74       74              
  Lines          2125     2130       +5     
============================================
+ Hits           1796     1801       +5     
  Misses          329      329              
Impacted Files Coverage Δ
src/Command/InstallCommand.php 99.09% <100.00%> (+0.04%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@stronk7 stronk7 force-pushed the additional-settings branch from 414c4b5 to ba11ba6 Compare May 30, 2023 07:52
@stronk7
Copy link
Member

stronk7 commented May 30, 2023

Hi @kiklop74 ,

I've rebased your original branch and have added a couple of (fixup) commits to it:

  1. About to use camelCase variables in the Installer command.
  2. About to briefly document the new env variables in changelog and travis/gha explained docs.

If they look ok for you, I can squash all (3 commits) changes together and proceed with this.

Ciao :-)

@stronk7 stronk7 force-pushed the additional-settings branch from ba11ba6 to 6de6826 Compare May 30, 2023 07:56
@scara
Copy link

scara commented May 30, 2023

Hi @stronk7,
what about deprecating DB to use DB_TYPE with a plan to remove DB bc in the future?
It would be consistent with the CLI arguments counterpart.

HTH,
Matteo

@kiklop74
Copy link
Contributor Author

@stronk7 this all looks great. Go ahead and do whatever you had in mind.

@stronk7
Copy link
Member

stronk7 commented May 31, 2023

what about deprecating DB to use DB_TYPE with a plan to remove DB bc in the future?

+1 to create issue about that, indeed!

@stronk7
Copy link
Member

stronk7 commented May 31, 2023

I've created #229 about the move from existing DB to a new DB_TYPE env var, for the records.

@stronk7
Copy link
Member

stronk7 commented May 31, 2023

@kiklop74 ,

I've squashed the 3 commits (original + 2 fixups) into 1 and I'll proceed to review and merge this soon.

Ciao :-)

@stronk7 stronk7 force-pushed the additional-settings branch from c6f7285 to 69fd0ff Compare May 31, 2023 17:04
When trying to use this tool on anything other than Travis
it is harder to make ci script look lean because so many options
have to be crammed in the install command line.

It would be most useful to have more install options mapped to ENV variables.

Fixes moodlehq#217
@stronk7 stronk7 force-pushed the additional-settings branch from 69fd0ff to 942cfdf Compare May 31, 2023 17:05
@stronk7
Copy link
Member

stronk7 commented May 31, 2023

Done, I've left the command options as there where (without the (DB_XXXX env var) comment). The references in the "explained" files should be enough. Maybe, at some point, we should consider to add a new docs page with a list of all the available ENV variables, right now their docs are spread over multiple files.

@stronk7
Copy link
Member

stronk7 commented Jun 1, 2023

Thanks all, merging this...

@stronk7 stronk7 merged commit 871e8ac into moodlehq:master Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map more options of install command to ENV variables
4 participants