Created
August 15, 2020 16:11
-
-
Save samueldr/98eaf0ff87c635ca5c8ec62222382467 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 | |
args=( | |
HYDRA_CONFIG="$THIS/hydra.conf" | |
strace -s 512 -fo trace.strace | |
"$HYDRA"/result/bin/hydra-eval-jobs | |
-I /nix/store | |
-I "$PWD" | |
# # Testing something, this shouldn't be enabled. | |
# -I "nixpkgs=$PWD/../master" | |
"$@" | |
#./nixos/release-combined.nix | |
./nixos/release-small.nix | |
) | |
time env -i \ | |
"${args[@]}" > hydra-eval.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment