add tests

This commit is contained in:
zhongwuzw
2018-03-16 18:14:47 +08:00
parent 372f78007d
commit f814524a87
+16 -1
View File
@@ -7,6 +7,9 @@ version: 2
jobs:
build-and-test:
environment:
DESTINATION: platform=iOS Simulator,name=iPhone 8
# Specify the Xcode version to use.
macos:
xcode: "9.2.0"
@@ -25,9 +28,21 @@ jobs:
- run:
name: Bootstrap Carthage
command: carthage bootstrap
- run:
name: Biuld framework
command: xcodebuild build -project MessageKit.xcodeproj -scheme MessageKit -destination $DESTINATION CODE_SIGNING_REQUIRED=NO | xcpretty -c
- run:
name: Biuld and run tests
command: xcodebuild test -project MessageKit.xcodeproj -scheme MessageKitTests -destination "platform=iOS Simulator,name=iPhone 8" CODE_SIGNING_REQUIRED=NO
command: xcodebuild test -project MessageKit.xcodeproj -scheme MessageKitTests -destination $DESTINATION CODE_SIGNING_REQUIRED=NO | xcpretty -c
- run:
name: Fetch CocoaPods Specs
command: curl -sS https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash
- run:
name: Update Pods
command: cd Example && pod install
- run:
name: Biuld and analyze Example
command: xcodebuild build analyze -workspace Example/ChatExample.xcworkspace -scheme ChatExample -destination $DESTINATION ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c
# Run tests.
#- run: