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

Flake command: local-ci (name pending) #7157

Open
NorfairKing opened this issue Oct 11, 2022 · 6 comments
Open

Flake command: local-ci (name pending) #7157

NorfairKing opened this issue Oct 11, 2022 · 6 comments
Labels
feature Feature request or proposal

Comments

@NorfairKing
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I am trying to replace my use of the ci.nix pattern with a flake-ified version.

Describe the solution you'd like
A clear and concise description of what you want to happen.

I would like to have a single command that builds everything CI would/should.
Something to replace nix-build ci.nix

Describe alternatives you've considered

I could probably use nix flake show --json and build whatever that spits out, but that would still need some tooling/scripting that needs to be installed in every repo's Nix shell.

@NorfairKing NorfairKing added the feature Feature request or proposal label Oct 11, 2022
@knedlsepp
Copy link
Member

I think the hydraJobs output is meant for exactly that.

@NorfairKing
Copy link
Author

@knedlsepp It looks like I wasn't clear. Can you elabolate on how the hydraJobs output gives me this?

I would like to have a single command that builds everything CI would/should.
Something to replace nix-build ci.nix

@oldaccountdeadname
Copy link
Contributor

Could you nix build .#ci?

@NorfairKing
Copy link
Author

Could you nix build .#ci?

This would require me to define that, and make sure I don't forget anything.
The entire point is that nix flake local-ci would take care of that for me.

@arcuru
Copy link
Contributor

arcuru commented Oct 23, 2022

@NorfairKing is this local-ci request a dupe of nix build --all or are you looking for something else? In other words, is this a request to build everything defined in a flake with one command?

CI is usually a subset of the flake outputs, which is what both of the above suggestions are trying to point you towards.

@NorfairKing
Copy link
Author

In other words, is this a request to build everything defined in a flake with one command?

Yes, everything. (Not just the packages.)
Everything that could possibly be generically checked to go wrong should be checked in local-ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

4 participants