Skip to content

Conversation

@jimsynz
Copy link
Contributor

@jimsynz jimsynz commented Dec 10, 2020

I've found myself using various bodges to attempt to parse information out of the mix.exs file of my projects. Since we're in the process of integrating git_ops into our CI/CD system I thought it would be handy to have a mix task which can print this information in various formats.

@coveralls
Copy link

coveralls commented Dec 10, 2020

Pull Request Test Coverage Report for Build 155

  • 18 of 19 (94.74%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.0%) to 85.762%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/mix/tasks/git_ops.project_info.ex 18 19 94.74%
Totals Coverage Status
Change from base Build 150: 1.0%
Covered Lines: 259
Relevant Lines: 302

💛 - Coveralls

Adds a project info mix task which will output the app's name and version to stdout in various formats.

This is an extremely simplistic implementation because I didn't want to have to add any dependencies to git_ops.  I find that I am constantly trying to parse this information out of the `mix.exs` file in various CI/CD stages.
Copy link
Owner

@zachdaniel zachdaniel left a comment

Choose a reason for hiding this comment

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

LGTM!

@zachdaniel
Copy link
Owner

🚀 Thank you for your contribution! 🚀

@zachdaniel zachdaniel merged commit ce9e560 into zachdaniel:master Dec 15, 2020
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.

3 participants