Skip to content

Commit 37b0208

Browse files
committed
Use swiftproj in Carthage build
1 parent 30218ce commit 37b0208

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.travis.yml

Lines changed: 12 additions & 4 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+
- gem install swiftproj
1819

1920
before_script:
2021
- set -o pipefail
@@ -34,11 +35,18 @@ after_success:
3435
- bash <(curl -s https://codecov.io/bash) -X xcodeplist -J 'URLNavigator'
3536

3637
before_deploy:
37-
- ruby ./scripts/carthage_helper.rb prepare_xcconfig
38-
- ruby ./scripts/generate_xcodeproj.rb --xcconfig-overrides Config.xcconfig
38+
- swiftproj generate-xcconfig --podspec URLNavigator.podspec
39+
- swiftproj generate-xcodeproj --xcconfig-overrides Config.xcconfig
40+
- swiftproj add-system-framework
41+
--project URLNavigator.xcodeproj
42+
--target QuickSpecBase
43+
--framework Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework
44+
- swiftproj configure-scheme
45+
--project URLNavigator.xcodeproj
46+
--scheme URLNavigator-Package
47+
--buildable-targets URLNavigator,URLMatcher
3948
- carthage build --no-skip-current --verbose | xcpretty -c
40-
- ruby ./scripts/carthage_helper.rb modify_info
41-
- carthage archive URLNavigator
49+
- carthage archive URLNavigator URLMatcher
4250

4351
deploy:
4452
provider: releases

0 commit comments

Comments
 (0)