From 38999a52842ae0ebd6a97303eb25850e068de88f Mon Sep 17 00:00:00 2001 From: lincode Date: Fri, 14 Oct 2016 22:44:01 +0800 Subject: [PATCH 1/2] Add .travis.yml --- .travis.yml | 10 ++++++++++ README.md | 1 + 2 files changed, 11 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..42687aa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +osx_image: xcode8 +language: objective-c +script: + - | + xcodebuild test \ + -project FRDIntent.xcodeproj \ + -scheme FRDIntentTests \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.0' \ + ONLY_ACTIVE_ARCH=NO diff --git a/README.md b/README.md index 4b09df3..10435eb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # FRDIntent +[![Test Status](https://travis-ci.org/douban/FRDIntent.svg?branch=master)](https://travis-ci.org/douban/FRDIntent) [![Language](https://img.shields.io/badge/language-Swift%203-orange.svg) ](https://developer.apple.com/swift/) [![iOS](https://img.shields.io/badge/iOS-8.0-green.svg)]() From 5c47541f54a36bcd7c6ea745344b945f5c6cf63d Mon Sep 17 00:00:00 2001 From: lincode Date: Sat, 15 Oct 2016 23:11:36 +0800 Subject: [PATCH 2/2] Update .travis.yml --- .travis.yml | 4 ++-- README.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 42687aa..a5e6607 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,9 @@ osx_image: xcode8 language: objective-c script: - | - xcodebuild test \ + xcodebuild clean build test \ -project FRDIntent.xcodeproj \ - -scheme FRDIntentTests \ + -scheme FRDIntent \ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.0' \ ONLY_ACTIVE_ARCH=NO diff --git a/README.md b/README.md index 10435eb..9ff7f24 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Test Status](https://travis-ci.org/douban/FRDIntent.svg?branch=master)](https://travis-ci.org/douban/FRDIntent) [![Language](https://img.shields.io/badge/language-Swift%203-orange.svg) ](https://developer.apple.com/swift/) +[![IDE](https://img.shields.io/badge/XCode-8-blue.svg)]() [![iOS](https://img.shields.io/badge/iOS-8.0-green.svg)]() **FRDIntent** 包括两部分 FRDIntent/Intent 和 FRDIntent/URLRoutes。它们分别可以用于处理应用内和应用外的 view controller 调用。