Merge pull request #2676 from dreampiggy/project_travis_ci

Fix the Travis-CI script about code coverage submit
This commit is contained in:
DreamPiggy 2019-04-04 16:12:20 +08:00 committed by GitHub
commit 78c311bd3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -48,6 +48,8 @@ script:
- 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 XS' | xcpretty -c
- echo Clean DerivedData
- rm -rf ~/Library/Developer/Xcode/DerivedData/
- mkdir DerivedData
- echo Run the tests
@ -58,5 +60,5 @@ script:
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/macOS
after_success:
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImage$' -F 'iOS'
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImage$' -F 'macOS'
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/macOS' -J '^SDWebImage$' -c -F 'macos'
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImage$' -c -F 'ios'

View File

@ -2,4 +2,11 @@ coverage:
ignore:
- "Examples"
- "Vendors"
- "Tests"
- "Tests"
status:
project:
default: off
ios:
flags: ios
macos:
flags: macos