52 lines
843 B
YAML
52 lines
843 B
YAML
config:
|
|
build:
|
|
stage: build
|
|
script: exit 0
|
|
|
|
test:
|
|
stage: test
|
|
when: on_failure
|
|
script: exit 0
|
|
|
|
deploy:
|
|
stage: deploy
|
|
script: exit 0
|
|
|
|
init:
|
|
expect:
|
|
pipeline: pending
|
|
stages:
|
|
build: pending
|
|
test: created
|
|
deploy: created
|
|
jobs:
|
|
build: pending
|
|
test: created
|
|
deploy: created
|
|
|
|
transitions:
|
|
- event: success
|
|
jobs: [build]
|
|
expect:
|
|
pipeline: running
|
|
stages:
|
|
build: success
|
|
test: skipped
|
|
deploy: pending
|
|
jobs:
|
|
build: success
|
|
test: skipped
|
|
deploy: pending
|
|
|
|
- event: success
|
|
jobs: [deploy]
|
|
expect:
|
|
pipeline: success
|
|
stages:
|
|
build: success
|
|
test: skipped
|
|
deploy: success
|
|
jobs:
|
|
build: success
|
|
test: skipped
|
|
deploy: success
|