Jelajahi Sumber

Add the SwiftPM build steps in travis-CI

DreamPiggy 6 tahun lalu
induk
melakukan
ddcf5d255d
2 mengubah file dengan 7 tambahan dan 0 penghapusan
  1. 3 0
      .gitignore
  2. 4 0
      .travis.yml

+ 3 - 0
.gitignore

@@ -28,3 +28,6 @@ DerivedData
 #
 Pods/
 Podfile.lock
+
+# SwiftPM
+.build

+ 4 - 0
.travis.yml

@@ -35,6 +35,10 @@ script:
     - echo Check if the library described by the podspec can be built
     - pod lib lint --allow-warnings --skip-tests # Will run test below
 
+    - echo Build the SwiftPM
+    - swift build
+    - rm -rf ~/.build
+
     - 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 watchsimulator -configuration Debug | xcpretty -c