Created
March 29, 2020 00:00
-
-
Save samueldr/dddf9ee76e545501e6de7aead176d7b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#!nix-shell -p strace -i bash | |
set -e | |
set -u | |
PS4=" $ " | |
THIS="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" | |
# TODO: use a cached nix-built hydra from a hydra eval. | |
HYDRA="/Users/samuel/Projects/nixos/hydra" # FIXME | |
(set -x | |
cd "$HYDRA" | |
nix-build release.nix -A build | |
) | |
set -x | |
time env -i \ | |
HYDRA_CONFIG="$THIS/hydra.conf" \ | |
strace -s 512 -fo trace.strace \ | |
"$HYDRA"/result/bin/hydra-eval-jobs \ | |
-I /nix/store \ | |
-I "$PWD" \ | |
"$@" \ | |
./nixos/release-combined.nix > hydra-eval.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment