-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbitrise.yml
More file actions
84 lines (75 loc) · 2.23 KB
/
bitrise.yml
File metadata and controls
84 lines (75 loc) · 2.23 KB
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
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
app:
envs:
- BIN_NAME: stepman
step_bundles:
setup-go:
steps:
- script:
title: Setup pinned Go version
inputs:
- content: asdf install
workflows:
test:
title: Runs tests
steps:
- git::https://github.com/bitrise-steplib/steps-check.git:
inputs:
- workflow: lint
- skip_step_yml_validation: "yes"
- skip_go_checks: "yes"
- bundle::setup-go: { }
- go-list: { }
- script:
title: golangci-lint
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
INSTALL_DIR=$(go env GOPATH)/bin
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$INSTALL_DIR" v2.6.0
asdf reshim golang
"$INSTALL_DIR"/golangci-lint run --config .golangci.yml
- go-test: { }
- script:
title: Run integration tests
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
current_stepman="$(pwd)/_tmp/test_stepman"
export CGO_ENALBED=0
go build -o "$current_stepman"
export PR="" PULL_REQUEST_ID=""
export INTEGRATION_TEST_BINARY_PATH="$current_stepman"
go test -v ./_tests/integration/...
create-release:
description: Creates Linux and Darwin binaries, then publishes a GitHub release
envs:
# Goreleaser expects this env var
- GITHUB_TOKEN: $GIT_BOT_USER_ACCESS_TOKEN
steps:
- bundle::setup-go: { }
- script:
title: Goreleaser (create binaries + publish to GH)
deps:
brew:
- name: goreleaser
inputs:
- content: goreleaser release
test-binary-build:
description: Tests the release build process by creating a snapshot release (without publishing)
steps:
- bundle::setup-go: { }
- script:
title: Goreleaser (create snapshot binaries)
deps:
brew:
- name: goreleaser
inputs:
- content: |
#!/usr/bin/env bash
set -ex
goreleaser release --snapshot --clean