Skip to content

Commit

Permalink
Update tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Sep 22, 2023
1 parent 5410b44 commit 70f67c5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env nix-shell
#! nix-shell -I "nixpkgs=channel:nixos-22.11" -i bash -p bash jq nix gnused docker
#! nix-shell -I "nixpkgs=channel:nixos-22.11" -i bash -p bash jq nix gnused

set -euo pipefail

Expand Down Expand Up @@ -231,10 +231,11 @@ fi
if [ "$TESTS" == "nixprof" ]; then
printf "*** Profile flakes development shell ...\n" >& 2
pushd ..
nixprof record nix develop ".#$GHC" --accept-flake-config
nixprof report -p
nixprof report -a
nixprof report -s
nix develop ".#$GHC" --accept-flake-config --show-trace
#nixprof record nix develop ".#$GHC" --accept-flake-config
#nixprof report -p
#nixprof report -a
#nixprof report -s
popd
# FIXME: is that the right way to publish a report on GitHub?
# curl -s -H "Authorization: token $GITHUB_TOKEN" -X POST -d "{\"body\": \"$report\"}" "https://api.github.com/repos/input-output-hk/haskell.nix/issues/$PR_NUMBER/comments"
Expand Down

0 comments on commit 70f67c5

Please sign in to comment.