Update the Travis-CI script
This commit is contained in:
parent
dc62982bbb
commit
862dac6161
13
.travis.yml
13
.travis.yml
|
@ -1,5 +1,5 @@
|
||||||
language: objective-c
|
language: objective-c
|
||||||
osx_image: xcode9.4
|
osx_image: xcode11.2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
@ -15,10 +15,9 @@ notifications:
|
||||||
before_install:
|
before_install:
|
||||||
- env
|
- env
|
||||||
- locale
|
- locale
|
||||||
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
- gem install cocoapods --no-document --quiet
|
||||||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
- gem install xcpretty --no-document --quiet
|
||||||
- pod --version
|
- pod --version
|
||||||
- pod setup --silent > /dev/null
|
|
||||||
- pod repo update --silent
|
- pod repo update --silent
|
||||||
- xcpretty --version
|
- xcpretty --version
|
||||||
- xcodebuild -version
|
- xcodebuild -version
|
||||||
|
@ -32,13 +31,15 @@ script:
|
||||||
|
|
||||||
- echo Build example
|
- echo Build example
|
||||||
- pod install --project-directory=Example
|
- pod install --project-directory=Example
|
||||||
- xcodebuild build clean -workspace SDWebImageWebPCoder.xcworkspace -scheme SDWebImageWebPCoderExample -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c
|
- xcodebuild build clean -workspace SDWebImageWebPCoder.xcworkspace -scheme SDWebImageWebPCoderExample -sdk iphonesimulator -destination 'name=iPhone 11 Pro' -configuration Debug | xcpretty -c
|
||||||
|
|
||||||
|
- echo Clean DerivedData
|
||||||
|
- rm -rf ~/Library/Developer/Xcode/DerivedData/
|
||||||
- mkdir DerivedData
|
- mkdir DerivedData
|
||||||
|
|
||||||
- echo Run the tests
|
- echo Run the tests
|
||||||
- pod install --project-directory=SDWebImageWebPCoderTests
|
- pod install --project-directory=SDWebImageWebPCoderTests
|
||||||
- xcodebuild test -workspace SDWebImageWebPCoder.xcworkspace -scheme 'SDWebImageWebPCoderTests' -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c
|
- xcodebuild clean test -workspace SDWebImageWebPCoder.xcworkspace -scheme 'SDWebImageWebPCoderTests' -sdk iphonesimulator -destination 'name=iPhone 11 Pro' -configuration Debug -UseModernBuildSystem=NO | xcpretty -c
|
||||||
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS
|
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
|
Loading…
Reference in New Issue