From f814524a87283ca07dc20c879d7b4d65239127f2 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Fri, 16 Mar 2018 18:14:47 +0800 Subject: [PATCH] add tests --- .circleci/config.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 50e621b7..b1c099d7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: