forked from vmware/vic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
133 lines (122 loc) · 2.79 KB
/
.drone.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# After any change to this file you MUST regenerate and checkin
# a .drone.sec even if no secrets were changed. The secrets file is tied
# to a specific .drone.yml so artifacts will not be uploaded to Bintray
# in following builds without an updated .drone.sec
---
clone:
path: github.com/vmware/vic
tags: true
build:
components:
image: golang:1.6.0
pull: true
environment:
BIN: bin
SHELL: /bin/bash
VIC_ESX_TEST_URL: $$VIC_ESX_TEST_URL
commands:
- make components
- make install
iso-base:
image: golang:1.6.0
pull: true
environment:
BIN: bin
commands:
- make iso-base
appliance-staging:
image: golang:1.6.0
pull: true
environment:
BIN: bin
commands:
- make appliance-staging
appliance:
image: golang:1.6.0
pull: true
environment:
BIN: bin
INIT: /lib/systemd/systemd
commands:
- make appliance
bootstrap-staging:
image: golang:1.6.0
pull: true
environment:
BIN: bin
commands:
- make bootstrap-staging
bootstrap:
image: golang:1.6.0
pull: true
environment:
BIN: bin
INIT: /sbin/init
commands:
- make bootstrap
test:
image: golang:1.6.0
pull: true
environment:
BIN: bin
GOPATH: /drone
SHELL: /bin/bash
DOCKER_API_VERSION: "1.21"
VIC_ESX_TEST_URL: $$VIC_ESX_TEST_URL
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
commands:
- wget -q https://get.docker.com/builds/Linux/x86_64/docker-latest
- chmod +x docker-latest
- mv docker-latest /usr/local/bin/docker
- make test
- make integration-tests
when:
success: true
bundle:
image: golang:1.6.0
pull: true
environment:
BIN: bin
BIN_TEMP_DIR: bin/vic
GOPATH: /drone
SHELL: /bin/bash
commands:
- rm -rf $BIN_TEMP_DIR
- mkdir $BIN_TEMP_DIR
- cp LICENSE $BIN_TEMP_DIR
- cp README $BIN_TEMP_DIR
- cp $BIN/install.sh $BIN_TEMP_DIR
- cp $BIN/appliance.iso $BIN_TEMP_DIR
- cp $BIN/bootstrap.iso $BIN_TEMP_DIR
- tar czvf $BIN/vic_$$BUILD_NUMBER.tar.gz -C $BIN vic
when:
success: true
publish:
coverage:
server: https://coverage.vmware.run
token: $$GITHUB_AUTOMATION_API_KEY
when:
repo: vmware/vic
branch: master
success: true
bintray:
username: $$BINTRAY_USERNAME
api_key: $$BINTRAY_API_KEY
artifacts:
- file: bin/vic_$$BUILD_NUMBER.tar.gz
owner: vmware
type: executable
repository: vic-repo
package: build
version: 0.1
target: vic_$$BUILD_NUMBER.tar.gz
publish: true
when:
repo: vmware/vic
branch: master
success: true
cache:
mount:
- /drone/bin
- bin