mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-15 12:25:47 +01:00
Add a justfile
This commit is contained in:
parent
c4b2b4095e
commit
851323f3b4
24
justfile
Normal file
24
justfile
Normal file
@ -0,0 +1,24 @@
|
||||
[parallel]
|
||||
test: stackage-server-nix
|
||||
stack test
|
||||
nix flake check
|
||||
|
||||
stackage-server-nix:
|
||||
cd nix && ./gen-packages.sh stackage-server
|
||||
|
||||
cachix-push:
|
||||
# inputs
|
||||
nix flake archive --json \
|
||||
| jq -r '.path,(.inputs|to_entries[].value.path)' \
|
||||
| cachix push stackage-infrastructure
|
||||
|
||||
# runtime closure
|
||||
nix build --no-link --print-out-paths \
|
||||
| cachix push stackage-infrastructure
|
||||
|
||||
# shell env
|
||||
nix develop --profile dev-profile -c true
|
||||
cachix push stackage-infrastructure dev-profile
|
||||
|
||||
run-ci:
|
||||
act --artifact-server-path=$PWD/act-artifacts pull_request --job stack-test
|
||||
@ -41,6 +41,13 @@ in
|
||||
app = hlib.justStaticExecutables hpkgs.stackage-server;
|
||||
shell = hpkgs.shellFor {
|
||||
packages = p: [ p.stackage-server ];
|
||||
buildInputs = [ pkgs.cabal-install pkgs.haskell-language-server pkgs.ghcid pkgs.haskellPackages.yesod-bin pkgs.postgresql ];
|
||||
buildInputs = [
|
||||
pkgs.cabal-install
|
||||
pkgs.haskell-language-server
|
||||
pkgs.ghcid
|
||||
pkgs.haskellPackages.yesod-bin
|
||||
pkgs.postgresql
|
||||
pkgs.just
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user