2019-08-09 16:25:52 +08:00
|
|
|
language: swift
|
2021-02-23 17:39:15 +08:00
|
|
|
osx_image: xcode12
|
2019-08-09 16:25:52 +08:00
|
|
|
|
|
|
|
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
|
2019-08-09 16:32:05 +08:00
|
|
|
- gem install cocoapods --no-document --quiet
|
|
|
|
- gem install xcpretty --no-document --quiet
|
2019-08-09 16:25:52 +08:00
|
|
|
- pod --version
|
|
|
|
- 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
|
2020-01-27 18:53:24 +08:00
|
|
|
- xcodebuild build -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUIDemo -destination 'name=iPhone 11 Pro Max' -configuration Debug | xcpretty -c
|
2019-08-09 16:25:52 +08:00
|
|
|
|
2021-02-23 18:43:27 +08:00
|
|
|
- ./carthage.sh update --configuration Debug
|
|
|
|
- xcodebuild build -project SDWebImageSwiftUI.xcodeproj -scheme 'SDWebImageSwiftUI' -destination 'name=iPhone 11 Pro Max' -configuration Debug | xcpretty -c
|
2020-01-27 17:10:06 +08:00
|
|
|
|
|
|
|
- echo Clean DerivedData
|
|
|
|
- rm -rf ~/Library/Developer/Xcode/DerivedData/
|
|
|
|
- mkdir DerivedData
|
|
|
|
|
|
|
|
- echo Run the tests
|
2020-01-27 18:53:24 +08:00
|
|
|
- xcodebuild clean test -project SDWebImageSwiftUI.xcodeproj -scheme 'SDWebImageSwiftUITests' -destination 'name=iPhone 11 Pro Max' -configuration Debug | xcpretty -c
|
2020-01-27 17:10:06 +08:00
|
|
|
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS
|
2020-04-12 13:36:52 +08:00
|
|
|
- xcodebuild clean test -project SDWebImageSwiftUI.xcodeproj -scheme 'SDWebImageSwiftUITests macOS' -destination 'platform=macOS,arch=x86_64' -configuration Debug | xcpretty -c
|
|
|
|
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/macOS
|
2020-01-27 18:15:12 +08:00
|
|
|
- xcodebuild clean test -project SDWebImageSwiftUI.xcodeproj -scheme 'SDWebImageSwiftUITests tvOS' -destination 'platform=tvOS Simulator,name=Apple TV' -configuration Debug | xcpretty -c
|
2020-01-27 17:10:06 +08:00
|
|
|
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/tvOS
|
|
|
|
|
|
|
|
after_success:
|
2020-01-27 18:53:24 +08:00
|
|
|
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImageSwiftUI$' -F ios
|
2020-04-12 13:36:52 +08:00
|
|
|
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImageSwiftUI$' -F macos
|
2020-01-27 18:53:24 +08:00
|
|
|
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/tvOS' -J '^SDWebImageSwiftUI$'-F tvos
|