-
-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move truffleruby jobs to a separate pipeline
to reduce visual noise
- Loading branch information
1 parent
f6d2742
commit 340686b
Showing
7 changed files
with
223 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
#@ load("@ytt:template", "template") | ||
|
||
#@ load("ruby.star", "truffleruby_versions") | ||
#@ all_truffleruby_versions = [] | ||
#@ all_truffleruby_versions.extend(truffleruby_versions["supported"]) | ||
#@ all_truffleruby_versions.extend(truffleruby_versions["beta"]) | ||
|
||
--- | ||
#@ def registry_image(image_repo, image_tag): | ||
platform: linux | ||
image_resource: | ||
type: registry-image | ||
source: | ||
repository: #@ image_repo | ||
tag: #@ image_tag | ||
#@ end | ||
|
||
--- | ||
resource_types: | ||
- name: pull-request | ||
type: registry-image | ||
source: | ||
repository: teliaoss/github-pr-resource | ||
|
||
|
||
resources: | ||
- name: ci | ||
type: git | ||
icon: cog | ||
source: | ||
uri: https://github.com/sparklemotion/nokogiri/ | ||
branch: master | ||
disable_ci_skip: true #! always get the latest pipeline configuration | ||
- name: nokogiri | ||
type: git | ||
icon: "github" | ||
check_every: 5m | ||
webhook_token: ((nokogiri-master-webhook-token)) | ||
source: | ||
uri: https://github.com/sparklemotion/nokogiri/ | ||
branch: master | ||
ignore_paths: | ||
- "*.md" | ||
- "concourse/**" | ||
- "suppressions/**" | ||
- ".github/**" | ||
- "Vagrantfile" | ||
- name: nokogiri-pr | ||
type: pull-request | ||
icon: github | ||
check_every: 15m | ||
webhook_token: ((nokogiri-pr-webhook-token)) | ||
source: | ||
repository: sparklemotion/nokogiri | ||
access_token: ((github-repo-status-access-token)) | ||
ignore_drafts: true | ||
ignore_paths: | ||
- "*.md" | ||
- "concourse/" | ||
- "suppressions/" | ||
- ".github/" | ||
- "Vagrantfile" | ||
|
||
jobs: | ||
#@ for ruby_version in all_truffleruby_versions: | ||
#@ job_name = "truffle-{}".format(ruby_version) | ||
- name: #@ job_name | ||
public: true | ||
plan: | ||
- get: ci | ||
- get: nokogiri | ||
trigger: true | ||
- task: rake-test | ||
config: | ||
"_": #@ template.replace(registry_image("flavorjones/nokogiri-test", "truffle-{}".format(ruby_version))) | ||
inputs: | ||
- name: ci | ||
- name: nokogiri | ||
run: { path: ci/concourse/tasks/rake-test/run.sh } | ||
#@ end | ||
|
||
#@ for ruby_version in all_truffleruby_versions: | ||
#@ job_name = "truffle-pr-{}".format(ruby_version) | ||
- name: #@ job_name | ||
public: true | ||
plan: | ||
- get: ci | ||
- get: nokogiri-pr | ||
trigger: true | ||
version: every | ||
- task: rake-test | ||
config: | ||
"_": #@ template.replace(registry_image("flavorjones/nokogiri-test", "truffle-{}".format(ruby_version))) | ||
inputs: | ||
- name: ci | ||
- name: nokogiri-pr | ||
path: nokogiri | ||
run: { path: ci/concourse/tasks/rake-test/run.sh } | ||
#@ end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
jobs: | ||
- name: truffle-stable | ||
plan: | ||
- get: ci | ||
- get: nokogiri | ||
trigger: true | ||
- config: | ||
image_resource: | ||
source: | ||
repository: flavorjones/nokogiri-test | ||
tag: truffle-stable | ||
type: registry-image | ||
inputs: | ||
- name: ci | ||
- name: nokogiri | ||
platform: linux | ||
run: | ||
path: ci/concourse/tasks/rake-test/run.sh | ||
task: rake-test | ||
public: true | ||
- name: truffle-nightly | ||
plan: | ||
- get: ci | ||
- get: nokogiri | ||
trigger: true | ||
- config: | ||
image_resource: | ||
source: | ||
repository: flavorjones/nokogiri-test | ||
tag: truffle-nightly | ||
type: registry-image | ||
inputs: | ||
- name: ci | ||
- name: nokogiri | ||
platform: linux | ||
run: | ||
path: ci/concourse/tasks/rake-test/run.sh | ||
task: rake-test | ||
public: true | ||
- name: truffle-pr-stable | ||
plan: | ||
- get: ci | ||
- get: nokogiri-pr | ||
trigger: true | ||
version: every | ||
- config: | ||
image_resource: | ||
source: | ||
repository: flavorjones/nokogiri-test | ||
tag: truffle-stable | ||
type: registry-image | ||
inputs: | ||
- name: ci | ||
- name: nokogiri-pr | ||
path: nokogiri | ||
platform: linux | ||
run: | ||
path: ci/concourse/tasks/rake-test/run.sh | ||
task: rake-test | ||
public: true | ||
- name: truffle-pr-nightly | ||
plan: | ||
- get: ci | ||
- get: nokogiri-pr | ||
trigger: true | ||
version: every | ||
- config: | ||
image_resource: | ||
source: | ||
repository: flavorjones/nokogiri-test | ||
tag: truffle-nightly | ||
type: registry-image | ||
inputs: | ||
- name: ci | ||
- name: nokogiri-pr | ||
path: nokogiri | ||
platform: linux | ||
run: | ||
path: ci/concourse/tasks/rake-test/run.sh | ||
task: rake-test | ||
public: true | ||
resource_types: | ||
- name: pull-request | ||
source: | ||
repository: teliaoss/github-pr-resource | ||
type: registry-image | ||
resources: | ||
- icon: cog | ||
name: ci | ||
source: | ||
branch: master | ||
disable_ci_skip: true | ||
uri: https://github.com/sparklemotion/nokogiri/ | ||
type: git | ||
- check_every: 5m | ||
icon: github | ||
name: nokogiri | ||
source: | ||
branch: master | ||
ignore_paths: | ||
- '*.md' | ||
- concourse/** | ||
- suppressions/** | ||
- .github/** | ||
- Vagrantfile | ||
uri: https://github.com/sparklemotion/nokogiri/ | ||
type: git | ||
webhook_token: ((nokogiri-master-webhook-token)) | ||
- check_every: 15m | ||
icon: github | ||
name: nokogiri-pr | ||
source: | ||
access_token: ((github-repo-status-access-token)) | ||
ignore_drafts: true | ||
ignore_paths: | ||
- '*.md' | ||
- concourse/ | ||
- suppressions/ | ||
- .github/ | ||
- Vagrantfile | ||
repository: sparklemotion/nokogiri | ||
type: pull-request | ||
webhook_token: ((nokogiri-pr-webhook-token)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters