SDWebImage/.travis.yml

55 lines
3.2 KiB
YAML
Raw Normal View History

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
- 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
- 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 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
- 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
- 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 apps
- 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
- 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
- xcodebuild test -workspace SDWebImage.xcworkspace -scheme 'Tests' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s' -configuration Debug | xcpretty -c
- 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)