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 } "
@@ -120,20 +146,7 @@ rec {
120
146
# This one is used for both PR status and bors:
121
147
"cardano-node/ci/pr/required" = {
122
148
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
- '' ;
149
+ io = prAndBorsIo ;
137
150
} ;
138
151
"cardano-node/ci/pr/nonrequired" = {
139
152
task = "ci/pr/nonrequired" ;
@@ -143,5 +156,9 @@ rec {
143
156
task = "ci/cardano-deployment" ;
144
157
io = prIo ;
145
158
} ;
159
+ "cardano-node/ci/pr/system-tests" = {
160
+ task = "ci/pr/system-tests" ;
161
+ io = prAndBorsIo ;
162
+ } ;
146
163
} ;
147
164
}
0 commit comments