-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from wordpress-mobile/release/1.7.3
Merge Release/1.7.3 to master
- Loading branch information
Showing
10 changed files
with
101 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,19 @@ version: 2.1 | |
|
||
orbs: | ||
# This uses the iOS Orb located at https://github.com/wordpress-mobile/circleci-orbs | ||
ios: wordpress-mobile/[email protected].13 | ||
ios: wordpress-mobile/[email protected].24 | ||
|
||
workflows: | ||
test_and_validate: | ||
jobs: | ||
- ios/test: | ||
name: Test | ||
xcode-version: "10.1.0" | ||
workspace: WordPressShared.xcworkspace | ||
scheme: WordPressShared | ||
destination: "platform=iOS Simulator,name=iPhone XS,OS=latest" | ||
device: iPhone XS | ||
ios-version: "12.1" | ||
- ios/validate-podspec: | ||
name: Validate Podspec | ||
xcode-version: "10.1.0" | ||
podspec-path: WordPressShared.podspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' do | ||
gem 'cocoapods', '1.5.3' | ||
gem 'cocoapods', '1.6.1' | ||
gem 'xcpretty' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Foundation | ||
import XCTest | ||
@testable import WordPressShared | ||
|
||
class NSDateHelperTest: XCTestCase { | ||
struct Data { | ||
let year: Int | ||
let month: Int | ||
let day: Int | ||
|
||
var dateString: String { | ||
return "\(year)-\(month)-\(day)" | ||
} | ||
} | ||
|
||
let data = Data(year: 2019, month: 02, day: 17) | ||
var date: Date? | ||
var dateFormatter: DateFormatter { | ||
let formatter = DateFormatter() | ||
formatter.dateFormat = "yyyy-MM-dd" | ||
return formatter | ||
} | ||
|
||
override func setUp() { | ||
date = dateFormatter.date(from: data.dateString) | ||
} | ||
|
||
func testDateAndTimeComponents() { | ||
XCTAssertNotNil(date) | ||
|
||
let components = date!.dateAndTimeComponents() | ||
XCTAssertEqual(components.year, data.year) | ||
XCTAssertEqual(components.month, data.month) | ||
XCTAssertEqual(components.day, data.day) | ||
} | ||
} |