forked from craftcms/nitro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuddy.yml
45 lines (45 loc) · 1.58 KB
/
buddy.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
- pipeline: "test"
trigger_mode: "ON_EVERY_PUSH"
auto_clear_cache: true
ref_name: "refs/heads/*"
ref_type: "WILDCARD"
trigger_condition: "ALWAYS"
actions:
- action: "Execute: go build -ldflags=\"-s -w -X 'github.com/craftcms/nitro/internal/cmd.Version=${VERSION}'\" -o nitro ./cmd/cli"
type: "BUILD"
working_directory: "/src/github.com/craftcms/nitro"
docker_image_name: "library/golang"
docker_image_tag: "1.14.2"
execute_commands:
- "export GOPATH=/"
- "export GO15VENDOREXPERIMENT=1"
- "go mod download"
- "go test -race -coverprofile=coverage.txt -covermode=atomic ./..."
volume_mappings:
- "/:/src/github.com/craftcms/nitro"
trigger_condition: "ALWAYS"
shell: "BASH"
- pipeline: "release"
trigger_mode: "ON_EVERY_PUSH"
auto_clear_cache: true
ref_name: "refs/tags/*"
ref_type: "WILDCARD"
trigger_condition: "ALWAYS"
actions:
- action: "Execute: tests and goreleaser"
type: "BUILD"
working_directory: "/src/github.com/craftcms/nitro"
docker_image_name: "library/golang"
docker_image_tag: "1.14.2"
execute_commands:
- "export GOPATH=/"
- "export GO15VENDOREXPERIMENT=1"
- "go mod download"
- "go test -race -coverprofile=coverage.txt -covermode=atomic ./..."
- "goreleaser --rm-dist"
setup_commands:
- "curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh"
volume_mappings:
- "/:/src/github.com/craftcms/nitro"
trigger_condition: "ALWAYS"
shell: "BASH"