Skip to content

Commit f21507e

Browse files
committed
Use swiftproj to build for Carthage
1 parent 6ae72e7 commit f21507e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
install:
1616
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
1717
- swift --version
18+
- bundle install
1819

1920
before_script:
2021
- set -o pipefail
@@ -42,11 +43,13 @@ script:
4243
- bundle exec pod lib lint --verbose --allow-warnings --fail-fast
4344

4445
before_deploy:
45-
- ruby ./scripts/carthage_helper.rb prepare_xcconfig
46-
- swift package generate-xcodeproj --xcconfig-overrides Config.xcconfig
47-
- ruby ./scripts/carthage_helper.rb remove_unnecessary_frameworks
48-
- carthage build --no-skip-current
49-
- ruby ./scripts/carthage_helper.rb modify_info
46+
- bundle exec swiftproj generate-xcconfig --podspec RxKeyboard.podspec
47+
- bundle exec swiftproj generate-xcodeproj --xcconfig-overrides Config.xcconfig
48+
- bundle exec swiftproj configure-scheme --project RxKeyboard.xcodeproj --scheme RxKeyboard-Package --buildable-targets RxKeyboard
49+
- bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoa.framework
50+
- bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoaRuntime.framework
51+
- carthage bootstrap
52+
- carthage build --no-skip-current --verbose | xcpretty -c
5053
- carthage archive RxKeyboard
5154

5255
deploy:

0 commit comments

Comments
 (0)