Browse Source

CI should validate the pod spec

Dan Federman 10 years ago
parent
commit
40c7655f5e
2 changed files with 7 additions and 1 deletions
  1. 4 1
      .travis.yml
  2. 3 0
      Gemfile

+ 4 - 1
.travis.yml

@@ -1,5 +1,8 @@
 language: objective-c
 osx_image: xcode6.4
+before_script:
+    - bundle install
 script:
     - xcodebuild -project SocketRocket.xcodeproj -scheme "SocketRocket" -sdk iphonesimulator -configuration Debug -PBXBuildsContinueAfterErrors=0 ACTIVE_ARCH_ONLY=0 build test
-    - xcodebuild -project SocketRocket.xcodeproj -scheme "SocketRocketOSX" -sdk macosx10.10 -configuration Debug -destination "platform=OS X" -PBXBuildsContinueAfterErrors=0 build
+    - xcodebuild -project SocketRocket.xcodeproj -scheme "SocketRocketOSX" -sdk macosx10.10 -configuration Debug -destination "platform=OS X" -PBXBuildsContinueAfterErrors=0 build
+    - pod lib lint --verbose --fail-fast

+ 3 - 0
Gemfile

@@ -0,0 +1,3 @@
+source 'https://rubygems.org'
+
+gem 'cocoapods', '0.37.2'