forked from pixeldock/RxAppState
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
58 lines (49 loc) · 1.89 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
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
workflows:
deploy:
steps:
- script:
deps:
brew:
- name: node
- name: streamlayer/formulas/carthage
- name: streamlayer/formulas/prefixify
inputs:
- content: |-
#!/bin/bash
set -ex
yarn add semantic-release @semantic-release/exec @semantic-release/git
TMPDIR=$(mktemp -d)
cp -R $DIR $TMPDIR
swift-prefixify rewrite $TMPDIR/$DIR $PWD/$DIR \
--report $REPORT \
--prefix $PREFIX \
--product-name "$PRODUCT_NAME" \
--include ../RxSwift/rxcocoa.json \
--include ../RxSwift/rxswift.json \
--include ../RxSwift/rxrelay.json \
--include ../RxSwift/rxblocking.json \
--include ../RxSwift/rxtest.json \
--rewrite slr:rx_appState \
--rewrite slr:rx_viewState \
--rewrite slr:rx_firstLaunch \
--rewrite slr:rx
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"; git checkout -- "$DIR"' INT TERM HUP EXIT
echo "MACH_O_TYPE = staticlib" >> $xcconfig
echo "DEBUG_INFORMATION_FORMAT = dwarf" >> $xcconfig
echo "CLANG_ENABLE_MODULE_DEBUGGING = NO" >> $xcconfig
echo "PRODUCT_NAME = ${PREFIX}${PRODUCT_NAME}" >> $xcconfig
echo "PRODUCT_MODULE_NAME = ${PREFIX}${PRODUCT_NAME}" >> $xcconfig
echo "OTHER_LDFLAGS = -framework ${PREFIX}RxSwift -framework ${PREFIX}RxCocoa -framework ${PREFIX}RxRelay" >> $xcconfig
export XCODE_XCCONFIG_FILE="$xcconfig"
yarn semantic-release
app:
envs:
- DIR: "Pod"
- PRODUCT_NAME: "RxAppState"
- PREFIX: "SLR_"
- REPORT: "./report.json"