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

Upgrade to mina 1.2 #54

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Upgrade to mina 1.2 #54

wants to merge 3 commits into from

Conversation

cromwellryan
Copy link
Contributor

Couple things going on here:

  1. Upgrading to more recent versions of minitest and rake. Mina is built on rake, so this goes along with the second item.
  2. Upgrades mina to the latest version, 1.2.3.
  3. Applies the idiomatic mina DSL as seen in lib/mina-circle/tasks.rb.
  4. Creates an test deploy script in test/config/deploy.rb.

Idiomatic Mina DSL
Mina has eliminated some of the dynamic helpers such as print_str, getters for variables, etc. Some of the things you will see in the mina-circle task implementation are:

Test Deploy Script
If you cd test, you can run mina deploy and it will locally run mina-circle. For this PR, it is pointing at Tire Discounters. This is a baby step to a full integration test that I think we can run in CircleCI.

Before committing this PR, those settings should be replaced with placeholders, but I'll leave them for ease of testing for now.

Migrating to idiomatic mina 1.2.3, including the use of `fetch`,
`ensure!`, `command`, and `invoke`
[helpers](https://github.com/mina-deploy/mina/blob/master/docs/writing_your_own_tasks.md).

The mina migration guide will help consumers:
When migrating dependent projects, use the mina migration guide
@iAmNathanJ
Copy link

iAmNathanJ commented Mar 19, 2021

This is a baby step to a full integration test that I think we can run in CircleCI.

Awesome.

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.

2 participants