forked from josmo/terraform-provider-sampleclassis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
41 lines (38 loc) · 1.17 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
workspace:
base: /go
path: src/github.com/josmo/${DRONE_REPO_NAME}
pipeline:
test:
image: golang:1.9
commands:
- go vet
- go test ./classis -cover -coverprofile=coverage.out
build_linux_amd64:
image: golang:1.9
group: build
environment:
- GOOS=linux
- GOARCH=amd64
- CGO_ENABLED=0
commands:
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/${DRONE_REPO_NAME}
build_osx_amd64:
image: golang:1.9
group: build
environment:
- GOOS=darwin
- GOARCH=amd64
- CGO_ENABLED=0
commands:
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/darwin/amd64/${DRONE_REPO_NAME}
# Copy to the plugins directory locally - really just for development and should fine a better way :)
- cp release/darwin/amd64/${DRONE_REPO_NAME} ./terraform.d/plugins/darwin_amd64
build_windows_amd64:
image: golang:1.9
group: build
environment:
- GOOS=windows
- GOARCH=amd64
- CGO_ENABLED=0
commands:
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/${DRONE_REPO_NAME}