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

[WIP] CI #12

Closed
wants to merge 12 commits into from
Closed

[WIP] CI #12

wants to merge 12 commits into from

Conversation

doshitan
Copy link
Contributor

@doshitan doshitan commented Dec 24, 2024

Closes #10

@doshitan doshitan force-pushed the doshitan/ci branch 29 times, most recently from da69eb6 to 7388e45 Compare December 31, 2024 15:33
Catch it up on some breaking changes and generally try to make it less
brittle.

Mount a host log directory for the tool inside docker to write to.

Mount the host gitconfig (if it exists), so git commits work inside
docker.

Try to mount any argument that looks like a host path into the docker
environment, with the same path. Dropping the special handling for the
"project dir" location.

Remove the setuid bits from `bin/docker-entry`. Using docker-wrapper is
pretty much required, so avoid extra work.
They don't actually assert things are correct, just that the commands
run without error, which for a start is useful.

Could, and maybe should, be a pytest test suite long-term, but at least
for now wanted something that just needed the tool installed to run.
Test building/installing/running tooling via a few different means, on
both Linux and macOS (where straightforward to support).
The template should have some content and a commit. Testing against an
bare template doesn't really make sense.
This is mainly for testing scenarios, where we may clone a repository to
a tmp directory that doesn't use the template name. But good to expose
something to end users directly for this as well, since we follow a
variety of conventions based on the template name.
Clearer/more consistent messaging to the user than Copier's error.
`git commit` will exit with code `1` if there's nothing to commit, so
check first for clearer messaging to the end user and simplified
"error"/non-zero exit code handling.
For "updating" a template with new answers, but keeping the same
version.
@doshitan
Copy link
Contributor Author

doshitan commented Jan 3, 2025

Merged and pushed locally.

@doshitan doshitan closed this Jan 3, 2025
@doshitan doshitan deleted the doshitan/ci branch January 3, 2025 21:23
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.

Set up basic CI
1 participant