forked from golang/example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
77 lines (73 loc) · 1.61 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: go
type: docker-image
source:
repository: golang
- name: repo
type: git
source:
uri: https://github.com/pivotal-nader-ziada/example.git
branch: master
jobs:
- name: unit-test
plan:
- get: repo
trigger: true
- get: go
trigger: true
- task: test
image: go
config:
platform: linux
inputs:
- name: repo
outputs:
- name: hello
run:
path: bash
args:
- "-exc"
- |
cd repo
go get github.com/golang/example/stringutil
go build -o test hello/hello.go
./test
- name: integration-test
plan:
- get: repo
passed: [unit-test]
trigger: true
- get: go
passed: [unit-test]
trigger: true
- task: test
image: go
config:
platform: linux
inputs:
- name: repo
outputs:
- name: hello
run:
path: bash
args:
- "-exc"
- |
cd repo
go get github.com/golang/example/stringutil
go build -o test hello/hello.go
./test
- name: ship-it
plan:
- get: repo
passed: [integration-test]
trigger: true
- task: ship
config:
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
run:
path: echo
args: [hello world]