-
Notifications
You must be signed in to change notification settings - Fork 22
/
bitrise.yml
62 lines (57 loc) · 1.69 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
format_version: 5
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_STEP_ID: build-router-start
- BITRISE_STEP_VERSION: "0.9.0"
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/bitrise-steplib/bitrise-step-build-router-start.git
- MY_STEPLIB_REPO_FORK_GIT_URL: $MY_STEPLIB_REPO_FORK_GIT_URL
- TEST_WORKFLOWS: $TEST_WORKFLOWS
- ACCESS_TOKEN: $ACCESS_TOKEN
workflows:
test:
envs:
- ENV_1: "1"
- ENV_2: "2"
- ENV_3: "3"
- ENV_4: "4"
before_run:
- audit-this-step
steps:
- go-list:
- golint:
- errcheck:
run_if: |-
{{enveq "ERRCHECK_DISABLE" ""}}
- go-test:
- path::./:
inputs:
- workflows: $TEST_WORKFLOWS
- access_token: $ACCESS_TOKEN
- wait_for_builds: "true"
- environment_key_list: "ENV_1\nENV_2\n$ENV_3\n$ENV_4\n"
- verbose: "yes"
test_shared_envs:
steps:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
echo "ENV_1 = $ENV_1 ENV_2 = $ENV_2 ENV_3 = $ENV_3 ENV_4 = $ENV_4"
if [[ "$ENV_1" != "1" ]] || [[ "$ENV_2" != "2" ]] || [[ "$ENV_3" != "3" ]] || [[ "$ENV_4" != "4" ]] ; then
exit 1;
else
echo "got all of the exported environments"
fi
# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
audit-this-step:
steps:
- script:
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
stepman audit --step-yml ./step.yml