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

setup and test scripts #14

Merged
merged 3 commits into from
Jun 4, 2024
Merged

setup and test scripts #14

merged 3 commits into from
Jun 4, 2024

Conversation

skyqrose
Copy link
Member

@skyqrose skyqrose commented Jun 3, 2024

Asana Task: Unspoken part of Install frontend dev tooling, I guess, now that there's frontend setup and test chores to do.

  • Tests:
    • ( ) Has tests
    • (x) Doesn't need tests
    • ( ) Tests deferred (with justification)
  • Product/Design sign off:
    • ( ) Okayed the plan for the feature (e.g. the design files, or the Asana task)
    • ( ) Reviewed the feature as implemented (e.g. on dev-green, or saw screenshots)
    • (x) No review needed

@skyqrose skyqrose requested a review from a team as a code owner June 3, 2024 19:59
#!/usr/bin/env sh

# Exit if any subcommand fails
set -e
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we set -ex and remove the echos below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Whaaat I never knew about set -x. That's cool.

Having tried it, it is slightly different than the echos:

  • It shows all commands, even the command -v mise which is useful if you're debugging exactly what's happening, but is too verbose for navigating all the text scrolling down your terminal.
  • It can't do the little bits of editorializing I put in the echos (pointing out that mix ecto.setup is in (dev), and combining local.hex and local.rebar)

What do you think about adding it to bin/test, but keeping the echos in bin/setup?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Points taken! That works for me 👍

@skyqrose skyqrose requested a review from mathcolo June 4, 2024 13:34
@skyqrose
Copy link
Member Author

skyqrose commented Jun 4, 2024

Whoops, I asked for a rereview but forgot to actually do the change to bin/test. Anyway, it's actually ready for a rereview now.

@skyqrose skyqrose merged commit fb3e5de into main Jun 4, 2024
4 checks passed
@skyqrose skyqrose deleted the sqr-bin branch June 4, 2024 20:50
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