This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree 2 files changed +34
-6
lines changed
2 files changed +34
-6
lines changed Original file line number Diff line number Diff line change 127
127
# Backwards compat for iohk-ops.
128
128
makeFaucetFrontend = self . cardano-sl-faucet-frontend ;
129
129
130
+ ####################################################################
131
+ # Report Server
132
+
133
+ cardano-report-server-static = self . justStaticExecutablesGitRev self . cardano-report-server ;
134
+
130
135
131
136
####################################################################
132
137
# Daedalus wallet
265
270
cardano-sl-crypto
266
271
cardano-sl-db
267
272
cardano-sl-explorer
268
- cardano-sl-explorer-frontend
269
273
cardano-sl-explorer-static
270
274
cardano-sl-generator
271
275
cardano-sl-infra
276
280
cardano-sl-util
277
281
cardano-sl-wallet
278
282
cardano-sl-wallet-new
279
- cardano-sl-x509
280
- cardano-report-server
281
- cardano-report-server-static ; }
283
+ cardano-sl-x509 ;
284
+ inherit ( self . haskellPackages )
285
+ cardano-report-server ; }
286
+
282
287
) ;
283
288
284
289
in
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /usr/bin/env nix-shell
2
+ #! nix-shell -p jq -i bash
2
3
3
4
nix-build https://github.com/nixos/nixpkgs/archive/4fb198892d298452023ab176e7067da58d30772e.tar.gz -A hydra
4
5
echo ' ~~~ Evaluating release.nix'
5
- ./result/bin/hydra-eval-jobs -I . release.nix
6
+ command time --format ' %e' -o eval-time.txt ./result/bin/hydra-eval-jobs -I . release.nix > eval.json
7
+ EVAL_EXIT_CODE=" $? "
8
+ if [ " $EVAL_EXIT_CODE " != 0 ]
9
+ then
10
+ rm eval.json eval-time.txt
11
+ echo -e " \\ e[31;1mERROR: Failed to evaluate release.nix\\ e[0m"
12
+ exit 1
13
+ fi
14
+ EVAL_TIME=$( cat eval-time.txt)
15
+ jq . < eval.json
16
+ ERRORS=$( jq -r ' map_values(.error)|to_entries[]|select(.value)|@text "\(.key): \(.value)"' < eval.json)
17
+ NUM_ERRORS=$( jq -r ' [ map_values(.error)|to_entries[]|select(.value) ] |length' < eval.json)
18
+ rm eval.json eval-time.txt
19
+
20
+ if [ " $NUM_ERRORS " != 0 ]
21
+ then
22
+ echo -e " \\ e[31;1mERROR: evaluation completed in $EVAL_TIME seconds with $NUM_ERRORS errors\\ e[0m"
23
+ echo " $ERRORS "
24
+ exit 1
25
+ else
26
+ echo -e " \\ e[32;1mOK: evaluation completed in $EVAL_TIME seconds with no errors\\ e[0m"
27
+ exit 0
28
+ fi
You can’t perform that action at this time.
0 commit comments