Skip to content

Commit 1d09a69

Browse files
bitrise.yml update (#82)
* bitrise.yml update * slack step removed
1 parent fbd2787 commit 1d09a69

File tree

1 file changed

+7
-88
lines changed

1 file changed

+7
-88
lines changed

bitrise.yml

Lines changed: 7 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
format_version: 1.1.0
1+
format_version: 5
22
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
33

44
app:
@@ -7,71 +7,12 @@ app:
77
- GITHUB_RELEASES_URL: https://github.com/bitrise-tools/${BITRISE_BIN_NAME}/releases
88

99
workflows:
10-
11-
_install_test_tools:
12-
steps:
13-
- script:
14-
title: Install required testing tools
15-
inputs:
16-
- content: |-
17-
#!/bin/bash
18-
set -ex
19-
# Check for unhandled errors
20-
go get -u github.com/kisielk/errcheck
21-
# Go lint
22-
go get -u github.com/golang/lint/golint
23-
24-
_test:
25-
steps:
26-
- script:
27-
title: GOLIST_WITHOUT_VENDOR
28-
inputs:
29-
- content: |-
30-
set -ex
31-
no_vendor_paths="$(go list ./... | grep -v vendor)"
32-
envman add --key GOLIST_WITHOUT_VENDOR --value "$no_vendor_paths"
33-
- script:
34-
title: Go Test
35-
inputs:
36-
- content: |-
37-
#!/bin/bash
38-
set -ex
39-
go test $GOLIST_WITHOUT_VENDOR
40-
- script:
41-
title: Err check
42-
inputs:
43-
- content: |-
44-
#!/bin/bash
45-
set -ex
46-
errcheck -asserts=true -blank=true $GOLIST_WITHOUT_VENDOR
47-
- script:
48-
title: Go Lint
49-
inputs:
50-
- content: |-
51-
#!/bin/bash
52-
set -e
53-
54-
while read -r line; do
55-
echo "-> Linting: $line"
56-
golint_out="$(golint $line)"
57-
if [[ "${golint_out}" != "" ]] ; then
58-
echo "=> Golint issues found:"
59-
echo "${golint_out}"
60-
exit 1
61-
fi
62-
done <<< "$GOLIST_WITHOUT_VENDOR"
63-
64-
install:
65-
before_run:
66-
- _test
10+
test:
6711
steps:
68-
- script:
69-
title: Test & install
70-
inputs:
71-
- content: |-
72-
#!/bin/bash
73-
set -ex
74-
go install
12+
- go-list:
13+
- golint:
14+
- errcheck:
15+
- go-test:
7516

7617
dep-update:
7718
title: Dep update
@@ -88,32 +29,10 @@ workflows:
8829
dep ensure -v
8930
dep ensure -v -update
9031
91-
ci:
92-
before_run:
93-
- _install_test_tools
94-
- _test
95-
steps:
96-
- slack:
97-
run_if: .IsCI
98-
inputs:
99-
- webhook_url: $INTERNAL_DEV_SLACK_WEBHOOK_URL
100-
- channel: $INTERNAL_DEV_SLACK_CHANNEL
101-
- from_username: ${BITRISE_BIN_NAME} - CI - OK
102-
- from_username_on_error: ${BITRISE_BIN_NAME} - CI - ERROR
103-
- emoji: ":white_check_mark:"
104-
- emoji_on_error: ":no_entry_sign:"
105-
- message: |-
106-
CI was successful on branch: *${BITRISE_GIT_BRANCH}*
107-
108-
Build URL: ${BITRISE_BUILD_URL}
109-
- message_on_error: |-
110-
CI FAILED on branch: *${BITRISE_GIT_BRANCH}*
111-
112-
Build URL: ${BITRISE_BUILD_URL}
11332
11433
create-release:
11534
before_run:
116-
- _test
35+
- test
11736
steps:
11837
- script:
11938
title: Creating deploy

0 commit comments

Comments
 (0)