Merge pull request #2709 from dreampiggy/test_update_script
Update the Codecov script, try to fix the report issue
This commit is contained in:
commit
abdcc11461
33
.travis.yml
33
.travis.yml
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
language: objective-c
|
language: objective-c
|
||||||
osx_image: xcode10
|
osx_image: xcode10.1
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
@ -10,13 +10,20 @@ env:
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
packages:
|
||||||
|
- curl # Fix the codecov upload issue
|
||||||
|
|
||||||
|
cache: cocoapods
|
||||||
|
podfile: Examples/Podfile
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- env
|
- env
|
||||||
- locale
|
- locale
|
||||||
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
|
||||||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
- gem install xcpretty --no-rdoc --no-ri --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
|
||||||
|
@ -26,20 +33,20 @@ script:
|
||||||
- set -o pipefail
|
- set -o pipefail
|
||||||
|
|
||||||
- echo Check if the library described by the podspec can be built
|
- echo Check if the library described by the podspec can be built
|
||||||
- pod lib lint --allow-warnings
|
- pod lib lint --allow-warnings --skip-tests # Will run test below
|
||||||
|
|
||||||
- echo Build as static library
|
- echo Build as static library
|
||||||
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage static' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage static' -sdk watchsimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage static' -sdk watchsimulator -configuration Debug | xcpretty -c
|
||||||
|
|
||||||
- echo Build as dynamic frameworks
|
- echo Build as dynamic frameworks
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk macosx -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk macosx -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk appletvsimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk appletvsimulator -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk watchsimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImage' -sdk watchsimulator -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImageMapKit' -sdk macosx -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImageMapKit' -sdk macosx -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImageMapKit' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImageMapKit' -sdk iphonesimulator PLATFORM_NAME=iphonesimulator -configuration Debug | xcpretty -c
|
||||||
- xcodebuild build clean -workspace SDWebImage.xcworkspace -scheme 'SDWebImageMapKit' -sdk appletvsimulator -configuration Debug | xcpretty -c
|
- xcodebuild build -workspace SDWebImage.xcworkspace -scheme 'SDWebImageMapKit' -sdk appletvsimulator -configuration Debug | xcpretty -c
|
||||||
|
|
||||||
- echo Build the Demo apps
|
- echo Build the Demo apps
|
||||||
- pod install --project-directory=Examples
|
- pod install --project-directory=Examples
|
||||||
|
@ -60,5 +67,7 @@ script:
|
||||||
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/macOS
|
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/macOS
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImage$' -c -F 'macos'
|
- export PATH="/usr/local/opt/curl/bin:$PATH"
|
||||||
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImage$' -c -F 'ios'
|
- curl --version
|
||||||
|
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImage$' -c -X gcov -F macos
|
||||||
|
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImage$' -c -X gcov -F ios
|
||||||
|
|
|
@ -568,6 +568,8 @@
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = 328BAF282240C08E00FC70DD /* Test-Debug.xcconfig */;
|
baseConfigurationReference = 328BAF282240C08E00FC70DD /* Test-Debug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 10.10;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
|
@ -575,6 +577,8 @@
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = 328BAF272240C08E00FC70DD /* Test-Release.xcconfig */;
|
baseConfigurationReference = 328BAF272240C08E00FC70DD /* Test-Release.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 10.10;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue