2014-11-03 04:53:45 +08:00
|
|
|
|
|
|
|
language: objective-c
|
2015-10-31 00:36:10 +08:00
|
|
|
osx_image: xcode7.1
|
|
|
|
|
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
|
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage-static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
- echo Build the Demo app
|
|
|
|
- xcodebuild clean build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage Demo' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | 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
|
2016-05-29 05:53:49 +08:00
|
|
|
- xcodebuild clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage-static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
2016-06-07 13:36:45 +08:00
|
|
|
- xcodebuild test -workspace SDWebImage.xcworkspace -scheme 'Tests' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' -configuration Debug | xcpretty -c
|