Skip to content

Commit

Permalink
ci: truffleruby pipeline has better task names
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Mar 11, 2021
1 parent be901fd commit 0027043
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
19 changes: 11 additions & 8 deletions concourse/nokogiri-truffleruby.yml
Expand Up @@ -6,10 +6,9 @@
#! 2021-03-10 omit stable until the changes related to nokogiri are shipping in v22
#! #@ all_truffleruby_versions.extend(truffleruby_versions["supported"])

#@ compile_flag_combos = ["--disable-system-libraries --disable-static",
#@ "--disable-system-libraries --enable-static",
#@ "--enable-system-libraries",
#@ ]
#@ compile_flag_combos = [["--disable-system-libraries", "--disable-static"],
#@ ["--disable-system-libraries", "--enable-static"],
#@ ["--enable-system-libraries"]]

---
#@ def registry_image(image_repo, image_tag):
Expand Down Expand Up @@ -80,12 +79,14 @@ jobs:
#@ if/end previous_job_name:
passed: #@ [previous_job_name]
#@ for compile_flags in compile_flag_combos:
- task: rake-test
#@ task_name = ["rake-test"]
#@ task_name.extend(compile_flags)
- task: #@ "_".join(task_name)
config:
"_": #@ template.replace(registry_image("flavorjones/nokogiri-test", "truffle-{}".format(ruby_version)))
inputs: [{name: ci}, {name: nokogiri}]
params:
COMPILE_FLAGS: #@ compile_flags
COMPILE_FLAGS: #@ " ".join(compile_flags)
run: { path: ci/concourse/tasks/rake-test/run.sh }
#@ end
#@ previous_job_name = job_name
Expand All @@ -104,12 +105,14 @@ jobs:
#@ if/end previous_job_name:
passed: #@ [previous_job_name]
#@ for compile_flags in compile_flag_combos:
- task: rake-test
#@ task_name = ["rake-test"]
#@ task_name.extend(compile_flags)
- task: #@ "_".join(task_name)
config:
"_": #@ template.replace(registry_image("flavorjones/nokogiri-test", "truffle-{}".format(ruby_version)))
inputs: [{name: ci}, {name: nokogiri-pr, path: nokogiri}]
params:
COMPILE_FLAGS: #@ compile_flags
COMPILE_FLAGS: #@ " ".join(compile_flags)
run: { path: ci/concourse/tasks/rake-test/run.sh }
#@ end
#@ previous_job_name = job_name
Expand Down
12 changes: 6 additions & 6 deletions concourse/nokogiri-truffleruby.yml.generated
Expand Up @@ -19,7 +19,7 @@ jobs:
platform: linux
run:
path: ci/concourse/tasks/rake-test/run.sh
task: rake-test
task: rake-test_--disable-system-libraries_--disable-static
- config:
image_resource:
name: ""
Expand All @@ -35,7 +35,7 @@ jobs:
platform: linux
run:
path: ci/concourse/tasks/rake-test/run.sh
task: rake-test
task: rake-test_--disable-system-libraries_--enable-static
- config:
image_resource:
name: ""
Expand All @@ -51,7 +51,7 @@ jobs:
platform: linux
run:
path: ci/concourse/tasks/rake-test/run.sh
task: rake-test
task: rake-test_--enable-system-libraries
public: true
- name: truffle-pr-nightly
plan:
Expand All @@ -75,7 +75,7 @@ jobs:
platform: linux
run:
path: ci/concourse/tasks/rake-test/run.sh
task: rake-test
task: rake-test_--disable-system-libraries_--disable-static
- config:
image_resource:
name: ""
Expand All @@ -92,7 +92,7 @@ jobs:
platform: linux
run:
path: ci/concourse/tasks/rake-test/run.sh
task: rake-test
task: rake-test_--disable-system-libraries_--enable-static
- config:
image_resource:
name: ""
Expand All @@ -109,7 +109,7 @@ jobs:
platform: linux
run:
path: ci/concourse/tasks/rake-test/run.sh
task: rake-test
task: rake-test_--enable-system-libraries
public: true
resource_types:
- name: pull-request
Expand Down

0 comments on commit 0027043

Please sign in to comment.