Skip to content

Commit

Permalink
fix travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
JoniVR committed Oct 20, 2018
1 parent d4f38c8 commit 9bdd737
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
osx_image: xcode9.4
osx_image: xcode10

before_install:
- gem install cocoapods
Expand All @@ -12,13 +12,13 @@ before_install:
script:
- set -o pipefail
# example
- xcodebuild clean build -project VerticalCardSwiper.xcodeproj -scheme Example -sdk iphonesimulator11.4 ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- xcodebuild clean build -project VerticalCardSwiper.xcodeproj -scheme Example -sdk iphonesimulator12.0 ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
# library
- xcodebuild clean build -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiper -sdk iphonesimulator11.4 ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- xcodebuild clean build -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiper -sdk iphonesimulator12.0 ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
# UI Tests iPhone X
- xcodebuild clean build test -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiperUITests -sdk iphonesimulator11.4 -destination "platform=iOS Simulator,name=iPhone X" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- xcodebuild clean build test -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiperUITests -sdk iphonesimulator12.0 -destination "platform=iOS Simulator,name=iPhone X" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
# UI Tests iPhone SE
- xcodebuild clean build test -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiperUITests -sdk iphonesimulator11.4 -destination "platform=iOS Simulator,name=iPhone SE" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- xcodebuild clean build test -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiperUITests -sdk iphonesimulator12.0 -destination "platform=iOS Simulator,name=iPhone SE" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
# UI Tests iPhone 8+
- xcodebuild clean build test -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiperUITests -sdk iphonesimulator11.4 -destination "platform=iOS Simulator,name=iPhone 8 Plus" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- xcodebuild clean build test -project VerticalCardSwiper.xcodeproj -scheme VerticalCardSwiperUITests -sdk iphonesimulator12.0 -destination "platform=iOS Simulator,name=iPhone 8 Plus" ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
- pod lib lint
2 changes: 1 addition & 1 deletion Sources/CardCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import UIKit

let cardCenterX = self.frame.midX
let centerX = self.bounds.midX
let initialSpringVelocity = fabs(cardCenterX - centerX)/100
let initialSpringVelocity = abs(cardCenterX - centerX)/100

UIView.animate(withDuration: 0.5,
delay: 0,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal extension UIPanGestureRecognizer {
*/
internal var direction: PanDirection? {
let velocity = self.velocity(in: view)
let vertical = fabs(velocity.y) > fabs(velocity.x)
let vertical = abs(velocity.y) > abs(velocity.x)
switch (vertical, velocity.x, velocity.y) {
case (true, _, let y) where y < 0: return .Up
case (true, _, let y) where y > 0: return .Down
Expand Down

0 comments on commit 9bdd737

Please sign in to comment.