mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
add tests
This commit is contained in:
+16
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user