Skip to content

Commit

Permalink
chore: 更新 travis 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
linhay committed Dec 19, 2019
1 parent 8387261 commit a542ba8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 26 deletions.
31 changes: 11 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
osx_image: xcode10.3
language: swift
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

cache: cocoapods
podfile: Example/Podfile
language: objective-c
osx_image: xcode10

env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- XCODE_WORKSPACE=Example/EmptyPage.xcworkspace
matrix:
- SCHEME="EmptyPage"

before_install:
- gem update --system
- gem install bundler
- bundle update
- pod install --project-directory=Example
- DESTINATION='platform=iOS Simulator,name=iPad Air'
- DESTINATION='platform=iOS Simulator,name=iPhone 5s'
- DESTINATION='platform=iOS Simulator,name=iPhone SE'
- DESTINATION='platform=iOS Simulator,name=iPhone 7'
- DESTINATION='platform=iOS Simulator,name=iPhone 7 Plus'

script:
- set -o pipefail
- xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Debug clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
- xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
- bundle exec pod lib lint --allow-warnings --verbose
- set -o pipefail && xcodebuild -workspace Example/EmptyPage.xcworkspace -scheme EmptyPage-Example -destination "$DESTINATION" ONLY_ACTIVE_ARCH=NO test | xcpretty

after_success:
- sleep 3
5 changes: 2 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,12 @@ DEPENDENCIES:

SPEC REPOS:
https://cdn.cocoapods.org/:
- Stone
- SwiftLint
https://github.com/CocoaPods/Specs.git:
- Hue
- SnapKit
- Stem
- Stone
- SVProgressHUD
- SwiftLint

EXTERNAL SOURCES:
EmptyPage:
Expand Down
5 changes: 2 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a542ba8

Please sign in to comment.