File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 223
223
} ) . workbench-profile-run { } ;
224
224
225
225
inherit ( pkgs ) all-profiles-json ;
226
+
227
+ system-tests = pkgs . writeShellApplication {
228
+ name = "system-tests" ;
229
+ runtimeInputs = with pkgs ; [ git gnused ] ;
230
+ text = ''
231
+ NODE_REV="${ self . rev or ( throw "Sorry, need clean/pushed git revision to run system tests" ) } "
232
+ MAKE_TARGET=testpr
233
+ mkdir -p tmp && cd tmp
234
+ rm -rf cardano-node-tests
235
+ git clone https://github.com/input-output-hk/cardano-node-tests.git
236
+ cd cardano-node-tests
237
+ sed -i '1 s/^.*$/#! \/usr\/bin\/env bash/' ./.github/regression.sh
238
+ export NODE_REV
239
+ export MAKE_TARGET
240
+ nix develop --accept-flake-config .#base -c ./.github/regression.sh 2>&1
241
+ '' ;
242
+ } ;
226
243
}
227
244
# Add checks to be able to build them individually
228
245
// ( prefixNamesWith "checks/" checks ) ;
Original file line number Diff line number Diff line change 82
82
memory = 1024 * 16 ;
83
83
nomad . resources . cpu = 10000 ;
84
84
} ;
85
+
86
+ "ci/pr/system-tests" = { lib , ...} @ args : {
87
+ imports = [ common ] ;
88
+ after = [ ] ;
89
+
90
+ command . text = ''
91
+ nix run -L .#system-tests
92
+ '' ;
93
+
94
+ memory = 1024 * 64 ;
95
+ nomad . resources . cpu = 40000 ;
96
+ } ;
85
97
} ;
86
98
87
99
actions =
@@ -138,5 +150,9 @@ rec {
138
150
task = "ci/cardano-deployment" ;
139
151
io = prIo ;
140
152
} ;
153
+ "cardano-node/ci/pr/system-tests" = {
154
+ task = "ci/pr/system-tests" ;
155
+ io = prIo ;
156
+ } ;
141
157
} ;
142
158
}
You can’t perform that action at this time.
0 commit comments