Try to clean the derived data before running the tests. Also added codecov integration

This commit is contained in:
Bogdan Poplauschi 2018-09-05 12:59:22 +03:00
parent e83f42e7ad
commit 74ad445735
1 changed files with 8 additions and 0 deletions

View File

@ -34,5 +34,13 @@ script:
- pod install --project-directory=Example
- xcodebuild build -workspace SDWebImageWebPCoder.xcworkspace -scheme SDWebImageWebPCoderExample -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c
- echo Clean DerivedData
- mkdir DerivedData
- rm -rf ~/Library/Developer/Xcode/DerivedData
- echo Run the tests
- xcodebuild test -workspace SDWebImageWebPCoder.xcworkspace -scheme 'SDWebImageWebPCoderTests' -sdk iphonesimulator -destination 'name=iPhone 6s' -configuration Debug | xcpretty -c
- mv ~/Library/Developer/Xcode/DerivedData/ ./DerivedData/iOS
after_success:
- bash <(curl -s https://codecov.io/bash) -D './DerivedData/iOS' -J '^SDWebImageWebPCoder$' -F 'iOS'