Skip to content

Commit 9c1e91f

Browse files
atanas-bitriseAtanas Chanevlpusok
authored
Extra xcodebuild arguments (#30)
* Added support for extra xcodebuild arguments * Xcactivitylogs are now supported with additional Script Step * Pass resultbundlePath to xcodebuild, export BITRISE_XCRESULT_PATH Co-authored-by: Atanas Chanev <atanaschanev@atanaschanev-mbp.broadband> Co-authored-by: Laszlo Pusok <laszlo.pusok@bitrise.io>
1 parent 94bf60b commit 9c1e91f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+17099
-6938
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.bitrise*
22
_tmp/
3+
steps-xcode-analyze

Gopkg.lock

Lines changed: 0 additions & 153 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

bitrise.yml

Lines changed: 20 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,43 @@
1-
format_version: 7
1+
format_version: "11"
22
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
33

44
app:
55
envs:
6-
- ORIG_BITRISE_SOURCE_DIR: $BITRISE_SOURCE_DIR
7-
- BITRISE_PROJECT_PATH: $BITRISE_PROJECT_PATH
8-
- BITRISE_SCHEME: $BITRISE_SCHEME
96
# if you want to use/test the force-code-sign mode
107
- BITRISE_CODE_SIGN_IDENTITY: $BITRISE_CODE_SIGN_IDENTITY
118
- BITRISE_PROVISIONING_PROFILE_ID: $BITRISE_PROVISIONING_PROFILE_ID
129

1310
workflows:
14-
# ----------------------------------------------------------------
15-
# --- workflow to Step Test
16-
test:
11+
check:
1712
steps:
18-
- go-list:
19-
- golint:
20-
- errcheck:
21-
- go-test:
22-
after_run:
23-
- test_objc
24-
- test_swiftpm
13+
- git::https://github.com/bitrise-steplib/steps-check.git: {}
2514

26-
test_objc:
27-
envs:
28-
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-ios-simple-objc.git
29-
- BITRISE_PROJECT_PATH: ios-simple-objc/ios-simple-objc.xcodeproj
30-
- BITRISE_SCHEME: ios-simple-objc
31-
after_run:
32-
- _run_and_test_output
15+
e2e:
16+
steps:
17+
- git::https://github.com/bitrise-steplib/steps-check.git:
18+
inputs:
19+
- workflow: e2e
3320

34-
test_swiftpm:
21+
sample:
3522
envs:
36-
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-ios-swiftpm.git
37-
- BITRISE_PROJECT_PATH: "sample-swiftpm2/sample-swiftpm2.xcodeproj"
38-
- BITRISE_SCHEME: "sample-swiftpm2"
39-
after_run:
40-
- _run_and_test_output
41-
42-
_run_and_test_output:
23+
- TEST_APP_URL: https://github.com/bitrise-io/sample-swift-project-with-parallel-ui-test.git
24+
- TEST_APP_BRANCH: master
25+
- BITRISE_PROJECT_PATH: BullsEye.xcworkspace
26+
- BITRISE_SCHEME: BullsEye
4327
steps:
4428
- script:
4529
title: Remove temporary directory
4630
inputs:
4731
- content: rm -rf "$BITRISE_SOURCE_DIR/_tmp"
48-
- change-workdir:
49-
title: Switch working dir to _tmp dir
50-
run_if: true
51-
inputs:
52-
- path: "$BITRISE_SOURCE_DIR/_tmp"
53-
- is_create_path: true
54-
- script:
32+
- git::https://github.com/bitrise-steplib/bitrise-step-simple-git-clone.git:
5533
inputs:
56-
- content: |-
57-
#!/bin/bash
58-
set -e
59-
set -v
60-
git clone $SAMPLE_APP_URL .
34+
- repository_url: $TEST_APP_URL
35+
- clone_into_dir: ./_tmp
36+
- branch: $TEST_APP_BRANCH
6137
- path::./:
62-
title: Test - xcodebuild output
38+
title: Self-test
6339
inputs:
64-
- is_clean_build: "no"
65-
- workdir: $PROJECT_WORKDIR
66-
- output_tool: xcodebuild
40+
- project_path: ./_tmp/$BITRISE_PROJECT_PATH
41+
- scheme: $BITRISE_SCHEME
6742
- force_code_sign_identity: $BITRISE_CODE_SIGN_IDENTITY
6843
- force_provisioning_profile: $BITRISE_PROVISIONING_PROFILE_ID
69-
- change-workdir:
70-
title: Switch working dir to _tmp dir
71-
run_if: true
72-
inputs:
73-
- path: "./_tmp"
74-
- is_create_path: true
75-
- script:
76-
inputs:
77-
- content: |-
78-
#!/bin/bash
79-
set -e
80-
set -v
81-
git clone $SAMPLE_APP_URL .
82-
- path::./:
83-
title: Test - xcpretty output
84-
inputs:
85-
- is_force_code_sign: "no"
86-
- is_clean_build: "no"
87-
- workdir: $PROJECT_WORKDIR
88-
- output_tool: xcpretty
89-
- force_code_sign_identity: $BITRISE_CODE_SIGN_IDENTITY
90-
- force_provisioning_profile: $BITRISE_PROVISIONING_PROFILE_ID
91-
92-
# ----------------------------------------------------------------
93-
# --- Utility workflows
94-
dep-update:
95-
title: Dep update
96-
description: |
97-
Used for updating bitrise dependencies with dep
98-
steps:
99-
- script:
100-
title: Dependency update
101-
inputs:
102-
- content: |-
103-
#!/bin/bash
104-
set -ex
105-
go get -u -v github.com/golang/dep/cmd/dep
106-
dep ensure -v
107-
dep ensure -v -update
108-
109-
# ----------------------------------------------------------------
110-
# --- workflows to Share this step into a Step Library
111-
audit-this-step:
112-
steps:
113-
- script:
114-
inputs:
115-
- content: |-
116-
#!/bin/bash
117-
set -ex
118-
stepman audit --step-yml ./step.yml

0 commit comments

Comments
 (0)