Add the SwiftPM build steps in travis-CI

This commit is contained in:
DreamPiggy 2019-06-14 18:29:33 +08:00
parent ea89adeb45
commit ddcf5d255d
2 changed files with 7 additions and 0 deletions

3
.gitignore vendored
View File

@ -28,3 +28,6 @@ DerivedData
#
Pods/
Podfile.lock
# SwiftPM
.build

View File

@ -35,6 +35,10 @@ script:
- echo Check if the library described by the podspec can be built
- pod lib lint --allow-warnings --skip-tests # Will run test below
- echo Build the SwiftPM
- swift build
- rm -rf ~/.build
- echo Build as static library
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage static' -sdk watchsimulator -configuration Debug | xcpretty -c