89
89
90
90
"ci/pr" = { lib , ... } @ args : {
91
91
imports = [ common ] ;
92
- after = [ "ci/pr/required" "ci/pr/nonrequired" "ci/cardano-deployment" ] ;
92
+ after = [ "ci/pr/required" "ci/pr/nonrequired" "ci/cardano-deployment" "ci/pr/system-tests" ] ;
93
+ } ;
94
+
95
+ "ci/pr/system-tests" = { lib , ...} @ args : {
96
+ imports = [ common ] ;
97
+ after = [ ] ;
98
+
99
+ command . text = ''
100
+ nix run -L .#system-tests
101
+ '' ;
102
+
103
+ memory = 1024 * 64 ;
104
+ nomad . resources . cpu = 40000 ;
93
105
} ;
94
106
} ;
95
107
@@ -100,6 +112,20 @@ rec {
100
112
#input: "${ ciInputName } "
101
113
#repo: "${ repository } "
102
114
'' ;
115
+ prAndBorsIo = ''
116
+ let github = {
117
+ #input: "${ ciInputName } "
118
+ #repo: "${ repository } "
119
+ }
120
+ let borsBranches = {
121
+ #branch: "staging|trying"
122
+ }
123
+ #lib.merge
124
+ #ios: [
125
+ #lib.io.github_pr & github,
126
+ #lib.io.github_push & borsBranches & github,
127
+ ]
128
+ '' ;
103
129
pushIo = ''
104
130
#lib.io.github_push
105
131
#input: "${ ciInputName } "
@@ -108,7 +134,6 @@ rec {
108
134
'' ;
109
135
in
110
136
{
111
-
112
137
"cardano-node/ci/push/required" = {
113
138
task = "ci/push/required" ;
114
139
io = pushIo ;
@@ -120,20 +145,7 @@ rec {
120
145
# This one is used for both PR status and bors:
121
146
"cardano-node/ci/pr/required" = {
122
147
task = "ci/pr/required" ;
123
- io = ''
124
- let github = {
125
- #input: "${ ciInputName } "
126
- #repo: "${ repository } "
127
- }
128
- let borsBranches = {
129
- #branch: "staging|trying"
130
- }
131
- #lib.merge
132
- #ios: [
133
- #lib.io.github_pr & github,
134
- #lib.io.github_push & borsBranches & github,
135
- ]
136
- '' ;
148
+ io = prAndBorsIo ;
137
149
} ;
138
150
"cardano-node/ci/pr/nonrequired" = {
139
151
task = "ci/pr/nonrequired" ;
@@ -143,5 +155,9 @@ rec {
143
155
task = "ci/cardano-deployment" ;
144
156
io = prIo ;
145
157
} ;
158
+ "cardano-node/ci/pr/system-tests" = {
159
+ task = "ci/pr/system-tests" ;
160
+ io = prAndBorsIo ;
161
+ } ;
146
162
} ;
147
163
}
0 commit comments