This repository has been archived by the owner on Apr 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
concourse: extract a basic PR pipeline from original
[skip ci]
- Loading branch information
1 parent
fa028e4
commit 8e344af
Showing
5 changed files
with
147 additions
and
244 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# TODO update to new resource | ||
resource_types: | ||
- name: pull-request | ||
type: docker-image | ||
source: | ||
repository: jtarchie/pr | ||
|
||
resources: | ||
- name: ci | ||
type: git | ||
source: | ||
uri: https://github.com/flavorjones/chromedriver-helper/ | ||
branch: master | ||
disable_ci_skip: true # always get the latest pipeline configuration | ||
|
||
# TODO update to new resource | ||
- name: chromedriver-helper-pr | ||
type: pull-request | ||
source: | ||
repo: flavorjones/chromedriver-helper | ||
access_token: {{github-repo-status-access-token}} | ||
ignore_paths: | ||
- concourse/** | ||
|
||
% ruby_version = RUBIES[:mri].last | ||
jobs: | ||
- name: pr-pending | ||
public: true | ||
plan: | ||
- get: ci | ||
- get: chromedriver-helper-pr | ||
trigger: true | ||
version: every | ||
- put: chromedriver-helper-pr | ||
params: {path: chromedriver-helper-pr, status: pending} | ||
|
||
- name: ruby-<%= ruby_version %> | ||
public: true | ||
max_in_flight: 1 | ||
plan: | ||
- get: ci | ||
- get: chromedriver-helper-pr | ||
trigger: true | ||
version: every | ||
passed: [pr-pending] | ||
- task: rake-test | ||
config: | ||
platform: linux | ||
image_resource: | ||
type: docker-image | ||
source: {repository: ruby, tag: "<%= ruby_version %>"} | ||
inputs: | ||
- name: ci | ||
- name: chromedriver-helper-pr | ||
path: chromedriver-helper | ||
run: | ||
path: ci/concourse/tasks/rake-test/run.sh | ||
on_failure: | ||
put: chromedriver-helper-pr | ||
params: {path: chromedriver-helper-pr, status: failure} | ||
|
||
- name: pr-success | ||
public: true | ||
disable_manual_trigger: true | ||
plan: | ||
- get: chromedriver-helper-pr | ||
trigger: true | ||
version: every | ||
passed: | ||
- ruby-<%= ruby_version %> | ||
- put: chromedriver-helper-pr | ||
params: {path: chromedriver-helper-pr, status: success} |
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,71 @@ | ||
# TODO update to new resource | ||
resource_types: | ||
- name: pull-request | ||
type: docker-image | ||
source: | ||
repository: jtarchie/pr | ||
|
||
resources: | ||
- name: ci | ||
type: git | ||
source: | ||
uri: https://github.com/flavorjones/chromedriver-helper/ | ||
branch: master | ||
disable_ci_skip: true # always get the latest pipeline configuration | ||
|
||
# TODO update to new resource | ||
- name: chromedriver-helper-pr | ||
type: pull-request | ||
source: | ||
repo: flavorjones/chromedriver-helper | ||
access_token: {{github-repo-status-access-token}} | ||
ignore_paths: | ||
- concourse/** | ||
|
||
jobs: | ||
- name: pr-pending | ||
public: true | ||
plan: | ||
- get: ci | ||
- get: chromedriver-helper-pr | ||
trigger: true | ||
version: every | ||
- put: chromedriver-helper-pr | ||
params: {path: chromedriver-helper-pr, status: pending} | ||
|
||
- name: ruby-2.6 | ||
public: true | ||
max_in_flight: 1 | ||
plan: | ||
- get: ci | ||
- get: chromedriver-helper-pr | ||
trigger: true | ||
version: every | ||
passed: [pr-pending] | ||
- task: rake-test | ||
config: | ||
platform: linux | ||
image_resource: | ||
type: docker-image | ||
source: {repository: ruby, tag: "2.6"} | ||
inputs: | ||
- name: ci | ||
- name: chromedriver-helper-pr | ||
path: chromedriver-helper | ||
run: | ||
path: ci/concourse/tasks/rake-test/run.sh | ||
on_failure: | ||
put: chromedriver-helper-pr | ||
params: {path: chromedriver-helper-pr, status: failure} | ||
|
||
- name: pr-success | ||
public: true | ||
disable_manual_trigger: true | ||
plan: | ||
- get: chromedriver-helper-pr | ||
trigger: true | ||
version: every | ||
passed: | ||
- ruby-2.6 | ||
- put: chromedriver-helper-pr | ||
params: {path: chromedriver-helper-pr, status: success} |
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
Oops, something went wrong.