2018-08-28 23:21:20 +08:00
|
|
|
language: objective-c
|
2019-12-27 12:08:46 +08:00
|
|
|
osx_image: xcode11.2
|
2018-08-28 23:21:20 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- LC_CTYPE=en_US.UTF-8
|
|
|
|
- LANG=en_US.UTF-8
|
|
|
|
|
|
|
|
addons:
|
|
|
|
ssh_known_hosts: github.com
|
2018-08-29 22:41:45 +08:00
|
|
|
|
2018-08-28 23:21:20 +08:00
|
|
|
notifications:
|
|
|
|
email: false
|
2018-08-29 22:41:45 +08:00
|
|
|
|
2018-08-28 23:21:20 +08:00
|
|
|
before_install:
|
|
|
|
- env
|
|
|
|
- locale
|
2019-12-27 12:08:46 +08:00
|
|
|
- gem install cocoapods --no-document --quiet
|
|
|
|
- gem install xcpretty --no-document --quiet
|
2018-08-28 23:21:20 +08:00
|
|
|
- pod --version
|
|
|
|
- pod repo update --silent
|
|
|
|
- xcpretty --version
|
|
|
|
- xcodebuild -version
|
|
|
|
- xcodebuild -showsdks
|
|
|
|
|
|
|
|
script:
|
|
|
|
- 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
|
2019-12-27 12:08:46 +08:00
|
|
|
- xcodebuild build clean -workspace SDWebImageWebPCoder.xcworkspace -scheme SDWebImageWebPCoderExample -sdk iphonesimulator -destination 'name=iPhone 11 Pro' -configuration Debug | xcpretty -c
|
2018-09-09 02:39:39 +08:00
|
|
|
|
2019-12-27 12:08:46 +08:00
|
|
|
- echo Clean DerivedData
|
|
|
|
- rm -rf ~/Library/Developer/Xcode/DerivedData/
|
2018-09-05 17:59:22 +08:00
|
|
|
- mkdir DerivedData
|
2018-08-28 23:21:20 +08:00
|
|
|
|
2018-09-05 17:47:13 +08:00
|
|
|
- echo Run the tests
|
2018-09-09 02:39:39 +08:00
|
|
|
- pod install --project-directory=SDWebImageWebPCoderTests
|
2019-12-27 12:08:46 +08:00
|
|
|
- xcodebuild clean test -workspace SDWebImageWebPCoder.xcworkspace -scheme 'SDWebImageWebPCoderTests' -sdk iphonesimulator -destination 'name=iPhone 11 Pro' -configuration Debug -UseModernBuildSystem=NO | xcpretty -c
|
2018-09-05 17:59:22 +08:00
|
|
|
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImageWebPCoder$' -F 'iOS'
|