소스 검색

Updated Travis CI Config

ibireme 9 년 전
부모
커밋
972843bbbf
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 1
      .travis.yml
  2. 1 1
      YYWebImage/YYWebImageOperation.m

+ 5 - 1
.travis.yml

@@ -1,3 +1,7 @@
 language: objective-c
+osx_image: xcode7
 xcode_project: Framework/YYWebImage.xcodeproj
-xcode_scheme: YYWebImage
+xcode_scheme: YYWebImage
+
+script:
+- xctool -project Framework/YYWebImage.xcodeproj -scheme YYWebImage build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

+ 1 - 1
YYWebImage/YYWebImageOperation.m

@@ -420,7 +420,7 @@ static NSData *JPEGSOSMarker() {
     }
 }
 
-- (nullable NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse {
+- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse {
     if (!cachedResponse) return cachedResponse;
     if (_options & YYWebImageOptionUseNSURLCache) {
         return cachedResponse;