-
Notifications
You must be signed in to change notification settings - Fork 12
/
bitrise.yml
63 lines (57 loc) · 1.64 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
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
app:
envs:
- BIN_NAME: stepman
workflows:
test:
title: Runs tests
steps:
- git::https://github.com/bitrise-steplib/steps-check.git:
inputs:
- workflow: lint
- skip_step_yml_validation: "yes"
- go-list: { }
- 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:
- script:
title: Goreleaser (create binaries + publish to GH)
deps:
brew:
- name: goreleaser
inputs:
- content: |
#!/usr/bin/env bash
set -ex
goreleaser release
test-binary-build:
description: Tests the release build process by creating a snapshot release (without publishing)
steps:
- script:
title: Goreleaser (create snapshot binaries)
deps:
brew:
- name: goreleaser
inputs:
- content: |
#!/usr/bin/env bash
set -ex
goreleaser release --snapshot --clean