2014-11-03 04:53:45 +08:00
|
|
|
|
|
|
|
language: objective-c
|
2017-10-17 22:52:55 +08:00
|
|
|
osx_image: xcode9
|
2015-10-31 00:36:10 +08:00
|
|
|
|
2016-05-09 04:04:40 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- LC_CTYPE=en_US.UTF-8
|
|
|
|
- LANG=en_US.UTF-8
|
|
|
|
|
2014-11-03 04:53:45 +08:00
|
|
|
|
2016-05-09 04:04:40 +08:00
|
|
|
before_install:
|
2014-11-03 04:53:45 +08:00
|
|
|
- env
|
|
|
|
- locale
|
2016-05-09 04:04:40 +08:00
|
|
|
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
|
|
|
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
2014-11-03 04:53:45 +08:00
|
|
|
- pod --version
|
2016-05-29 18:08:15 +08:00
|
|
|
- pod setup --silent > /dev/null
|
2014-11-03 04:53:45 +08:00
|
|
|
- pod repo update --silent
|
2016-05-09 04:04:40 +08:00
|
|
|
- xcpretty --version
|
|
|
|
- xcodebuild -version
|
|
|
|
- xcodebuild -showsdks
|
2014-11-03 04:53:45 +08:00
|
|
|
|
|
|
|
script:
|
2016-05-09 04:04:40 +08:00
|
|
|
- set -o pipefail
|
2014-11-03 04:53:45 +08:00
|
|
|
|
2016-05-09 04:04:40 +08:00
|
|
|
- echo Check if the library described by the podspec can be built
|
2015-03-17 21:43:11 +08:00
|
|
|
- pod lib lint --allow-warnings
|
2014-11-03 04:53:45 +08:00
|
|
|
|
2016-05-09 04:04:40 +08:00
|
|
|
- echo Build as static library
|
2016-06-13 05:53:08 +08:00
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage iOS static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage watchOS static' -sdk watchsimulator -configuration Debug | xcpretty -c
|
2016-05-09 04:04:40 +08:00
|
|
|
|
|
|
|
- echo Build as dynamic framework
|
2016-06-13 04:23:53 +08:00
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage OSX' -sdk macosx -configuration Debug | xcpretty -c
|
2016-05-09 04:04:40 +08:00
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage tvOS' -sdk appletvsimulator -configuration Debug | xcpretty -c
|
2016-06-13 02:11:35 +08:00
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage watchOS' -sdk watchsimulator -configuration Debug | xcpretty -c
|
2016-05-09 04:04:40 +08:00
|
|
|
|
2016-06-13 05:53:08 +08:00
|
|
|
- echo Build the Demo apps
|
2018-02-20 11:41:21 +08:00
|
|
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage OSX Demo' -sdk macosx -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage iOS Demo' -configuration Debug -destination 'name=iPhone 6s' | xcpretty -c
|
|
|
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage TV Demo' -sdk appletvsimulator -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage Watch Demo' -configuration Debug -destination 'name=iPhone 6s' | xcpretty -c
|
2014-11-03 04:53:45 +08:00
|
|
|
|
2016-05-09 04:04:40 +08:00
|
|
|
- echo Run the tests
|
2015-03-17 22:14:33 +08:00
|
|
|
- pod install --project-directory=Tests
|
2017-10-18 20:22:01 +08:00
|
|
|
- xcodebuild clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage iOS' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage iOS Demo' -configuration Debug -destination 'name=iPhone 6s' | xcpretty -c
|
2018-02-20 01:49:20 +08:00
|
|
|
- xcodebuild test -workspace SDWebImage.xcworkspace -scheme 'Tests' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s' -configuration Debug | xcpretty -c
|
2018-02-20 00:36:52 +08:00
|
|
|
- xcodebuild clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage OSX' -sdk macosx -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage OSX Demo' -sdk macosx -configuration Debug | xcpretty -c
|
|
|
|
- xcodebuild test -workspace SDWebImage.xcworkspace -scheme 'Tests Mac' -sdk macosx -destination 'platform=OS X,arch=x86_64' -configuration Debug | xcpretty -c
|
2016-09-26 17:06:11 +08:00
|
|
|
|
|
|
|
after_success:
|
2016-09-26 17:10:14 +08:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|