-
Notifications
You must be signed in to change notification settings - Fork 1
/
bitrise.yml
88 lines (85 loc) · 2.18 KB
/
bitrise.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
format_version: "13"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
meta:
bitrise.io:
machine_type_id: standard
stack: linux-docker-android-22.04
trigger_map:
- push_branch: main
workflow: test
- pull_request_source_branch: '*'
workflow: test
- tag: '*.*.*'
workflow: release
workflows:
release:
description: Creates Linux and Darwin binaries, then publishes a GitHub release
envs:
- GITHUB_TOKEN: $GIT_BOT_USER_ACCESS_TOKEN
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8:
inputs:
- fetch_tags: "yes"
- script@1:
title: asdf use latest go
inputs:
- content: |-
#!/usr/bin/env bash
asdf global golang 1.22
- script:
title: Install Goreleaser
inputs:
- content: |
#!/usr/bin/env bash
set -ex
GOBIN=/usr/local/bin/ go install github.com/goreleaser/goreleaser/v2@latest
- script:
title: Goreleaser (create binaries + publish to GH)
deps:
brew:
- name: goreleaser
inputs:
- content: |
#!/usr/bin/env bash
set -ex
goreleaser release
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
machine_type_id: g2-m1.8core
stack: osx-xcode-edge
test:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- go-list@1: {}
- script@1:
title: golangci-lint
inputs:
- content: |-
#!/bin/bash
set -ex
make lint
- go-test@1: {}
- deploy-to-bitrise-io@2: {}
e2e:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- script@1:
title: build CLI
inputs:
- content: |-
set -ex
go build -o bitrise-build-cache-cli
- script@1:
title: Run test
inputs:
- content: |-
set -ex
bitrise run --config e2e/bitrise.yml test_gradle_output_diagnostics