-
Notifications
You must be signed in to change notification settings - Fork 7
/
bitrise.yml
57 lines (51 loc) · 1.37 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
format_version: 1.3.1
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
# define these in your .bitrise.secrets.yml
- AUTH_TOKEN: $AUTH_TOKEN
- ROOM_ID: $ROOM_ID
workflows:
# ----------------------------------------------------------------
# --- workflow to test this step
test:
before_run:
- audit-this-step
steps:
- go-list:
- golint:
- errcheck:
- go-test:
- path::./:
title: On Success
inputs:
- auth_token: $AUTH_TOKEN
- room_id: $ROOM_ID
- message: <a href="http://www.w3schools.com">Visit W3Schools</a>
# ----------------------------------------------------------------
# --- Utility workflows
godeps-update:
title: Godeps update
steps:
- script:
title: Dependency update
inputs:
- content: |
#!/bin/bash
set -ex
go get -u -v github.com/tools/godep
rm -rf ./Godeps
rm -rf ./vendor
go get -t -d ./...
godep save ./...
# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
audit-this-step:
title: Audit the step
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml