mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-25 05:35:01 +03:00
Add scripts for hacking
This commit is contained in:
parent
36e48776cf
commit
c2bdf8e047
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@ result-*
|
||||
|
||||
dist/
|
||||
dist-newstyle/
|
||||
cabal.project.local
|
||||
|
||||
|
6
build
Executable file
6
build
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash
|
||||
|
||||
# Build the Haskell package via cabal, outside Nix
|
||||
|
||||
cabal new-build --write-ghc-environment-files=never
|
1
cabal.project
Normal file
1
cabal.project
Normal file
@ -0,0 +1 @@
|
||||
packages: .
|
6
repl
Executable file
6
repl
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash
|
||||
|
||||
# A Haskell REPL for hacking on the Haskell code
|
||||
|
||||
cabal new-repl --write-ghc-environment-files=never
|
15
run-arion
Executable file
15
run-arion
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash
|
||||
#!nix-shell ./shell.nix
|
||||
|
||||
# For quick manual testing of a hacked arion
|
||||
|
||||
# NB: Only works inside the project directory
|
||||
|
||||
cabal \
|
||||
new-run \
|
||||
--write-ghc-environment-files=never \
|
||||
:pkg:arion-compose:exe:arion \
|
||||
-- \
|
||||
"$@" \
|
||||
;
|
6
run-arion-via-nix
Executable file
6
run-arion-via-nix
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# For manual testing of a hacked arion built via Nix.
|
||||
# Works when called from outside the project directory.
|
||||
|
||||
exec nix run -f "$(dirname ${BASH_SOURCE[0]})" arion -c arion "$@"
|
Loading…
Reference in New Issue
Block a user