Vauxoo / travis2docker

This is a Library to transform travis to docker file
BSD 2-Clause "Simplified" License
13 stars 15 forks source link

[IMP] t2d: Default --root-path #167 #175

Closed antonag32 closed 1 year ago

antonag32 commented 1 year ago

Fixes #167

Root path is set to $HOME/t2d, I also took the liberty to create an extra folder per repo. So for example if I clone vauxoo/random all files created by t2d will be stored on $HOME/t2d/vauxoo__random, I think that is the expected behavior when someone hears root path, and the only way a default would be useful, otherwise I would still need to tell t2d where to store this specific project (relative to root path).

codecov-commenter commented 1 year ago

Codecov Report

Base: 83.05% // Head: 83.02% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (cd798c8) compared to base (8a6c87b). Patch coverage: 66.66% of modified lines in pull request are covered.

:exclamation: Current head cd798c8 differs from pull request most recent head d05f171. Consider uploading reports for the commit d05f171 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #175 +/- ## ========================================== - Coverage 83.05% 83.02% -0.03% ========================================== Files 7 7 Lines 590 589 -1 Branches 101 101 ========================================== - Hits 490 489 -1 Misses 71 71 Partials 29 29 ``` | [Impacted Files](https://codecov.io/gh/Vauxoo/travis2docker/pull/175?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo) | Coverage Δ | | |---|---|---| | [src/travis2docker/cli.py](https://codecov.io/gh/Vauxoo/travis2docker/pull/175/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo#diff-c3JjL3RyYXZpczJkb2NrZXIvY2xpLnB5) | `75.75% <66.66%> (-0.25%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Vauxoo)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

antonag32 commented 1 year ago

Update: To cover most cases and keep code changes minimal, the last part after / will be the name of the folder where t2d files will be saved per project. So using t2d with a repo URL or https://....vauxoo/odoo.git will endup with a folder named odoo.git