-
Notifications
You must be signed in to change notification settings - Fork 14
/
bitrise.yml
47 lines (39 loc) · 1.33 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
format_version: "7"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
workflows:
ci:
after_run:
- test
- integration-test
test:
steps:
- git::https://github.com/bitrise-steplib/steps-check.git:
inputs:
- skip_step_yml_validation: "yes"
integration-test:
steps:
- script:
title: Run integration tests
inputs:
- content: |-
#!/bin/bash
echo "Running integration tests ..."
set -ex
go test -v ./_tests/integration/...
maintenance:
steps:
- script:
title: Check step version change
inputs:
- content: |-
#!/usr/bin/env bash
go get -u github.com/godrei/stepper
# explanation:
# 1. run stepper tool
# 2. extract relevant part
# https://stackoverflow.com/questions/7103531/how-to-get-the-part-of-a-file-after-the-first-line-that-matches-a-regular-expres
stepper stepLatests --steps-const-file=$BITRISE_SOURCE_DIR/steps/const.go | sed -n -e '/package steps/,$p' > stepper_output.go
# 3. diff the generated const file with current one
diff $BITRISE_SOURCE_DIR/steps/const.go stepper_output.go
# 4. diff returns nonzero if diff not empty
exit $?