2019-08-09 16:25:52 +08:00
|
|
|
language: swift
|
|
|
|
osx_image: xcode11
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- LC_CTYPE=en_US.UTF-8
|
|
|
|
- LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
addons:
|
|
|
|
ssh_known_hosts: github.com
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- env
|
|
|
|
- locale
|
|
|
|
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
|
|
|
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
|
|
|
- pod --version
|
|
|
|
- pod setup --silent > /dev/null
|
|
|
|
- pod repo update --silent
|
|
|
|
- xcpretty --version
|
|
|
|
- xcodebuild -version
|
|
|
|
- xcodebuild -showsdks
|
|
|
|
|
2019-08-07 18:10:05 +08:00
|
|
|
script:
|
2019-08-09 16:25:52 +08:00
|
|
|
- set -o pipefail
|
|
|
|
|
|
|
|
- echo Check if the library described by the podspec can be built
|
|
|
|
- pod lib lint --allow-warnings
|
|
|
|
|
|
|
|
- echo Build example
|
|
|
|
- pod install --project-directory=Example
|
|
|
|
- xcodebuild build -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUIDemo -sdk iphonesimulator -destination 'name=iPhone 8' ONLY_ACTIVE_ARCH=NO | xcpretty -c
|
|
|
|
|
|
|
|
- swift build
|