-
Notifications
You must be signed in to change notification settings - Fork 326
/
release.nix
52 lines (46 loc) · 1.57 KB
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ ... }:
let
system = (system: (import ./default.nix { inherit system; }));
linux = system "x86_64-linux";
darwin = system "x86_64-darwin";
ethereum-test-suite = x: x.fetchFromGitHub {
owner = "ethereum";
repo = "tests";
rev = "e20d7f39aae1e33394ae6b94590d15083e224fa5";
sha256 = "1i68k3b8sxawbm65mwph8d5ld9jdjh08c6hln0vygjgwmd0j4n30";
};
# run all General State Tests, skipping performance heavy tests and the ones missing
# postState.
hevmCompliance = x: x.runCommand "hevm-compliance" {} ''
mkdir "$out"
export PATH=${x.pkgs.hevm}/bin:${x.pkgs.jq}/bin:$PATH
${x.pkgs.hevm}/bin/hevm compliance \
--tests ${ethereum-test-suite x} \
--skip "(Create2Recursive|Create1000|recursiveCreateReturn|underflowTest|walletRemoveOwnerRemovePending|Return5000|randomStatetest177|loopExp|loopMul|FirstByte)" \
--timeout 20 \
--html > $out/index.html
# Disable obsolete VMTests - gas expectations broken by Istanbul
# ${x.pkgs.hevm}/bin/hevm compliance \
# --tests ${ethereum-test-suite x} \
# --group "VM"
'';
# These packages should always work and be available in the binary cache.
stable = dist: with dist.pkgs; {
inherit hevm;
inherit dapp;
inherit ethsign;
inherit go-ethereum-unlimited;
inherit go-ethereum;
inherit qrtx-term;
inherit qrtx;
inherit seth;
inherit token;
inherit solc-versions;
inherit dapp-tests;
inherit hevm-tests;
hevm-compliance = hevmCompliance dist;
};
in {
dapphub.linux.stable = stable linux;
dapphub.darwin.stable = stable darwin;
}