|
| 1 | +% require "common_prelude.rb" |
| 2 | + |
| 3 | +resource_types: |
| 4 | +<%= erbify_file "common_resource_types.yml" -%> |
| 5 | + |
| 6 | + |
| 7 | +resources: |
| 8 | +<%= erbify_file "common_resources.yml" -%> |
| 9 | + - name: nokogiri |
| 10 | + type: git |
| 11 | + icon: "github-circle" |
| 12 | + source: |
| 13 | + uri: https://github.com/sparklemotion/nokogiri/ |
| 14 | + branch: "v1.10.x" |
| 15 | + ignore_paths: <%= $common_ignore_paths %> |
| 16 | + |
| 17 | + |
| 18 | +anchors: |
| 19 | +<%= erbify_file "common_anchors.yml" -%> |
| 20 | + |
| 21 | + |
| 22 | +jobs: |
| 23 | +% RUBIES[:mri].each do |ruby_version| |
| 24 | + - name: ruby-<%= ruby_version %>-system |
| 25 | + public: true |
| 26 | + serial_groups: ["ruby-<%= ruby_version %>"] |
| 27 | + plan: |
| 28 | + - get: ci |
| 29 | + - get: nokogiri |
| 30 | + trigger: true |
| 31 | + - task: rake-test |
| 32 | + config: |
| 33 | + platform: linux |
| 34 | + image_resource: |
| 35 | + type: docker-image |
| 36 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= ruby_version %>"} |
| 37 | + inputs: |
| 38 | + - name: ci |
| 39 | + - name: nokogiri |
| 40 | + params: |
| 41 | + NOKOGIRI_USE_SYSTEM_LIBRARIES: t |
| 42 | + run: |
| 43 | + path: ci/concourse/tasks/rake-test/run.sh |
| 44 | +% if Concourse.production_rubies.include? ruby_version |
| 45 | + on_failure: *notify_failure_to_irc |
| 46 | +% end |
| 47 | + |
| 48 | + - name: ruby-<%= ruby_version %>-vendored |
| 49 | + public: true |
| 50 | + serial_groups: ["ruby-<%= ruby_version %>"] |
| 51 | + plan: |
| 52 | + - get: ci |
| 53 | + - get: nokogiri |
| 54 | + trigger: true |
| 55 | + passed: ["ruby-<%= ruby_version %>-system"] |
| 56 | + - task: rake-test |
| 57 | + config: |
| 58 | + platform: linux |
| 59 | + image_resource: |
| 60 | + type: docker-image |
| 61 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= ruby_version %>"} |
| 62 | + inputs: |
| 63 | + - name: ci |
| 64 | + - name: nokogiri |
| 65 | + run: |
| 66 | + path: ci/concourse/tasks/rake-test/run.sh |
| 67 | +% if Concourse.production_rubies.include? ruby_version |
| 68 | + on_failure: *notify_failure_to_irc |
| 69 | +% end |
| 70 | + |
| 71 | + - name: ruby-<%= ruby_version %>-valgrind |
| 72 | + public: true |
| 73 | + serial_groups: ["ruby-<%= ruby_version %>"] |
| 74 | + plan: |
| 75 | + - get: ci |
| 76 | + - get: nokogiri |
| 77 | + trigger: true |
| 78 | + passed: ["ruby-<%= ruby_version %>-vendored"] |
| 79 | + - task: rake-test |
| 80 | + config: |
| 81 | + platform: linux |
| 82 | + image_resource: |
| 83 | + type: docker-image |
| 84 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= ruby_version %>"} |
| 85 | + inputs: |
| 86 | + - name: ci |
| 87 | + - name: nokogiri |
| 88 | + params: |
| 89 | + TEST_WITH_VALGRIND: t |
| 90 | + run: |
| 91 | + path: ci/concourse/tasks/rake-test/run.sh |
| 92 | +% if Concourse.production_rubies.include? ruby_version |
| 93 | + on_failure: *notify_failure_to_irc |
| 94 | +% end |
| 95 | +% end |
| 96 | + |
| 97 | + |
| 98 | +% RUBIES[:jruby].each_with_index do |jruby_version, j| |
| 99 | + - name: jruby-<%= jruby_version %> |
| 100 | + public: true |
| 101 | + serial_groups: ["jruby"] |
| 102 | + plan: |
| 103 | + - get: ci |
| 104 | + - get: nokogiri |
| 105 | + trigger: true |
| 106 | +% if j > 0 |
| 107 | + passed: ["jruby-<%= RUBIES[:jruby][j-1] %>"] |
| 108 | +% end |
| 109 | + - task: rake-test |
| 110 | + config: |
| 111 | + platform: linux |
| 112 | + image_resource: |
| 113 | + type: docker-image |
| 114 | + source: {repository: "flavorjones/nokogiri-test", tag: "jruby-<%= jruby_version %>"} |
| 115 | + inputs: |
| 116 | + - name: ci |
| 117 | + - name: nokogiri |
| 118 | + run: |
| 119 | + path: ci/concourse/tasks/rake-test/run.sh |
| 120 | + on_failure: *notify_failure_to_irc |
| 121 | +% end |
| 122 | + |
| 123 | + |
| 124 | + - name: gate |
| 125 | + public: true |
| 126 | + plan: |
| 127 | + - get: nokogiri |
| 128 | + trigger: true |
| 129 | + passed: |
| 130 | +% Concourse.production_rubies.each do |ruby_version| |
| 131 | + - "ruby-<%= ruby_version %>-valgrind" |
| 132 | +% end |
| 133 | + - "jruby-<%= RUBIES[:jruby].last %>" |
| 134 | + |
| 135 | + |
| 136 | + - name: ruby-vanilla-system |
| 137 | + public: true |
| 138 | + serial: true |
| 139 | + plan: |
| 140 | + - get: ci |
| 141 | + - get: nokogiri |
| 142 | + trigger: true |
| 143 | + passed: ["gate"] |
| 144 | + - task: rake-test |
| 145 | + config: |
| 146 | + platform: linux |
| 147 | + image_resource: |
| 148 | + type: docker-image |
| 149 | + source: {repository: "flavorjones/nokogiri-test", tag: xenial} |
| 150 | + inputs: |
| 151 | + - name: ci |
| 152 | + - name: nokogiri |
| 153 | + params: |
| 154 | + NOKOGIRI_USE_SYSTEM_LIBRARIES: t |
| 155 | + TEST_WITH_APT_REPO_RUBY: t |
| 156 | + run: |
| 157 | + path: ci/concourse/tasks/rake-test/run.sh |
| 158 | + on_failure: *notify_failure_to_irc |
| 159 | + |
| 160 | + |
| 161 | + - name: ruby-libxmlruby-system |
| 162 | + public: true |
| 163 | + serial: true |
| 164 | + plan: |
| 165 | + - get: ci |
| 166 | + - get: nokogiri |
| 167 | + trigger: true |
| 168 | + passed: ["gate"] |
| 169 | + - task: rake-test |
| 170 | + config: |
| 171 | + platform: linux |
| 172 | + image_resource: |
| 173 | + type: docker-image |
| 174 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= Concourse.production_rubies.last %>"} |
| 175 | + inputs: |
| 176 | + - name: ci |
| 177 | + - name: nokogiri |
| 178 | + params: |
| 179 | + BUNDLE_GEMFILE: "Gemfile-libxml-ruby" |
| 180 | + NOKOGIRI_USE_SYSTEM_LIBRARIES: t |
| 181 | + run: |
| 182 | + path: ci/concourse/tasks/rake-test/run.sh |
| 183 | + on_failure: *notify_failure_to_irc |
| 184 | + |
| 185 | + |
| 186 | + - name: ruby-libxmlruby-valgrind |
| 187 | + public: true |
| 188 | + serial: true |
| 189 | + plan: |
| 190 | + - get: ci |
| 191 | + - get: nokogiri |
| 192 | + trigger: true |
| 193 | + passed: ["gate"] |
| 194 | + - task: rake-test |
| 195 | + config: |
| 196 | + platform: linux |
| 197 | + image_resource: |
| 198 | + type: docker-image |
| 199 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= Concourse.production_rubies.last %>"} |
| 200 | + inputs: |
| 201 | + - name: ci |
| 202 | + - name: nokogiri |
| 203 | + params: |
| 204 | + BUNDLE_GEMFILE: "Gemfile-libxml-ruby" |
| 205 | + TEST_WITH_VALGRIND: t |
| 206 | + run: |
| 207 | + path: ci/concourse/tasks/rake-test/run.sh |
| 208 | + on_failure: *notify_failure_to_irc |
| 209 | + |
| 210 | + |
| 211 | + - name: gem-test |
| 212 | + public: true |
| 213 | + serial: true |
| 214 | + plan: |
| 215 | + - get: ci |
| 216 | + - get: nokogiri |
| 217 | + trigger: true |
| 218 | + passed: ["gate"] |
| 219 | + - task: gem-build |
| 220 | + config: |
| 221 | + platform: linux |
| 222 | + image_resource: |
| 223 | + type: docker-image |
| 224 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= Concourse.production_rubies.last %>"} |
| 225 | + inputs: |
| 226 | + - name: ci |
| 227 | + - name: nokogiri |
| 228 | + outputs: |
| 229 | + - name: gems |
| 230 | + run: |
| 231 | + path: ci/concourse/tasks/gem-test/gem-build.sh |
| 232 | + on_failure: *notify_failure_to_irc |
| 233 | + - task: gem-install-and-test |
| 234 | + config: |
| 235 | + platform: linux |
| 236 | + image_resource: |
| 237 | + type: docker-image |
| 238 | + source: {repository: "flavorjones/nokogiri-test", tag: "mri-<%= Concourse.production_rubies.last %>"} |
| 239 | + inputs: |
| 240 | + - name: ci |
| 241 | + - name: nokogiri |
| 242 | + - name: gems |
| 243 | + run: |
| 244 | + path: ci/concourse/tasks/gem-test/gem-install-and-test.sh |
| 245 | + on_failure: *notify_failure_to_irc |
| 246 | + |
| 247 | + - name: gem-test-java |
| 248 | + public: true |
| 249 | + serial: true |
| 250 | + plan: |
| 251 | + - get: ci |
| 252 | + - get: nokogiri |
| 253 | + trigger: true |
| 254 | + passed: ["gate"] |
| 255 | + - task: gem-build |
| 256 | + config: |
| 257 | + platform: linux |
| 258 | + image_resource: |
| 259 | + type: docker-image |
| 260 | + source: {repository: "flavorjones/nokogiri-test", tag: "jruby-<%= RUBIES[:jruby].last %>"} |
| 261 | + inputs: |
| 262 | + - name: ci |
| 263 | + - name: nokogiri |
| 264 | + outputs: |
| 265 | + - name: gems |
| 266 | + run: |
| 267 | + path: ci/concourse/tasks/gem-test/gem-build-java.sh |
| 268 | + on_failure: *notify_failure_to_irc |
| 269 | + - task: gem-install-and-test |
| 270 | + config: |
| 271 | + platform: linux |
| 272 | + image_resource: |
| 273 | + type: docker-image |
| 274 | + source: {repository: "flavorjones/nokogiri-test", tag: "jruby-<%= RUBIES[:jruby].last %>"} |
| 275 | + inputs: |
| 276 | + - name: ci |
| 277 | + - name: nokogiri |
| 278 | + - name: gems |
| 279 | + run: |
| 280 | + path: ci/concourse/tasks/gem-test/gem-install-and-test.sh |
| 281 | + on_failure: *notify_failure_to_irc |
| 282 | + |
| 283 | + |
| 284 | + - name: build-success |
| 285 | + public: true |
| 286 | + disable_manual_trigger: true |
| 287 | + plan: |
| 288 | + - get: nokogiri |
| 289 | + trigger: true |
| 290 | + version: every |
| 291 | + passed: |
| 292 | + - ruby-vanilla-system |
| 293 | + - ruby-libxmlruby-system |
| 294 | + - ruby-libxmlruby-valgrind |
| 295 | + - gem-test |
| 296 | + - gem-test-java |
| 297 | + - put: nokogiri-irc |
| 298 | + params: {message: "($BUILD_PIPELINE_NAME/$BUILD_JOB_NAME) The build passed ($BUILD_URL)"} |
0 commit comments