2018-08-28 23:21:20 +08:00
|
|
|
language: objective-c
|
|
|
|
osx_image: xcode9
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2018-08-29 20:35:36 +08:00
|
|
|
- xcodebuild build -workspace SDWebImageWebPCoder.xcworkspace -scheme SDWebImageWebPCoderExample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' -configuration Debug | xcpretty -c
|
2018-08-28 23:21:20 +08:00
|
|
|
|
|
|
|
# - echo Run the tests
|
|
|
|
# - xcodebuild test -workspace Example/SDImageWebPCoderExample.xcworkspace -scheme 'SDImageWebPCoderTests' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' -configuration Debug | xcpretty -c
|