-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
77 lines (71 loc) · 1.41 KB
/
pipeline.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
resources:
- name: py-world-git
type: git
source:
uri: ((source-url))
branch: ((branch))
- name: cf-devtest
type: cf
source:
api: ((cf-api))
username: ((username))
password: ((password))
organization: paas
space: josh
jobs:
- name: get-resource
public: true
plan:
- get: py-world-git
trigger: true
- name: unit-test
public: true
plan:
- get: py-world-git
trigger: true
passed: [get-resource]
- task: run-unit-test
config:
platform: linux
image_resource:
type: docker-image
source:
repository: qnib/pytest
inputs:
- name: py-world-git
run:
path: pytest
args:
dir: py-world-git
- name: deploy-app
public: true
plan:
- get: py-world-git
passed: [unit-test]
trigger: true
- put: cf-devtest
params:
manifest: py-world-git/manifest.yml
path: py-world-git
- name: acceptance-test
public: true
plan:
- get: py-world-git
trigger: true
passed: [deploy-app]
- task: acceptance-test
config:
platform: linux
image_resource:
type: docker-image
source:
repository: python
tag: 2.7-jessie
inputs:
- name: py-world-git
run:
path: py-world-git/acceptancetest.sh
params:
HOST: ((app-host))
URL: ((app-url))
NAME: "Rhi"