-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathscrewdriver.yaml
37 lines (35 loc) · 1.63 KB
/
screwdriver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# Shared definition block
# This is where you would define any attributes that all your jobs will
# inherit.
shared:
# We specify a common Ruby Docker image for our Jobs. It takes the form of
# "repo_name:tag_label", where the "tag_label" is optional.
# Docker image - https://hub.docker.com/_/ruby/
image: ruby:2
# Jobs definition block
# All pipelines have "main" by default, and is implicitly defined.
jobs:
# We explicitly define "main" in our configuration so that it does what we want
# it to do.
main:
# A single job name or array of jobs that will trigger the job to run.
# Jobs defined with "requires: ~pr" are started by pull-request events.
# Jobs defined with "requires: ~commit" are started by push events.
# Jobs defined with "requires: ~sd@123:main" are started by job "main" from pipeline "123".
# Jobs defined with "requires: deploy-west" are started after "deploy-west" is done.
# Jobs defined with "requires: [deploy-west, deploy-east] are started after "deploy-west" and "deploy-east" are both done running successfully.
requires:
- ~pr
- ~commit
# Steps is the ordered list of commands to execute.
# Each step takes the form "step_name: command_to_run". The "step_name" is a
# convient label to reference it by. The "command_to_run" is the single
# command that is executed during the step.
steps:
# Our "bundle_install" step is first in the list. It installs your Gem
# dependencies
- bundle_install: bundle install
# The next step is "rake". It runs the default rake task defined in your
# Rakefile
- rake: bundle exec rake