Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Configure CircleCI #10

Merged
merged 32 commits into from
Mar 5, 2017
Merged

Configure CircleCI #10

merged 32 commits into from
Mar 5, 2017

Conversation

djbe
Copy link
Member

@djbe djbe commented Feb 19, 2017

Fixes #8, keep track of SwiftGen/StencilSwiftKit#20 for any changes that need to be copied here.

@djbe djbe changed the title Setup CircleCI Configure CircleCI Feb 24, 2017
Podfile Outdated
@@ -1,8 +1,7 @@
platform :osx, '10.9'
platform :osx, '10.12'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this bump? Are we now using APIs in SwiftGenKit that are only available in 10.12?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(If that were the case our podspec file would be wrong so I guess that's not the reason)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just trying to always have the latest libs and deprecation warnings (should we get any). I'll revert this for now

else if let lhs = lhs as? String, let rhs = rhs as? String, lhs == rhs { return nil }
else if let lhs = lhs as? [Any], let rhs = rhs as? [Any], lhs.count == rhs.count {

if let lhs = lhs as? Bool, let rhs = rhs as? Bool, lhs == rhs { return nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going to go to the next line for the closing brace (probably because SwiftLint wants us to right?) I'd prefer to go to the next line after the opening brace too to be consistent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K

@@ -0,0 +1,28 @@
namespace :lint do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect those files in rakelib are gonna be copied over from Eve (that would serve as our source of truth for those utils) once generalized on all our repos?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stencilswiftkit and this repo match fairly well. The templates repo has some small differences, the swiftgen one even more. So no idea how far we can go in unifying these

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah given their specifics (one not being code to compile as a framework but rather templates, the other being a CLI that we need to wrap manually) I can guess why they might be different. I just don't want to repeat code and more importantly risk any discrepancy between them or bugs being fixed in one place but not the other…

But that will probably be work for a dedicated PR in Eve once everything is merged and works then.

def xcpretty(cmd, task, subtask = '')
name = (task.name + (subtask.empty? ? '' : "_#{subtask}")).gsub(/[:-]/, "_")
command = [*cmd].join(' && ')
xcpretty = `which xcpretty`
Copy link
Contributor

@AliSoftware AliSoftware Feb 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same remarks for rakelib/lint.rake rakelib/utils.rake here than the ones in SwiftGen/SwiftGen#269 (review)

@djbe djbe merged commit 4931f84 into master Mar 5, 2017
@djbe djbe deleted the feature/circleci branch March 5, 2017 16:16
@djbe djbe added this to the 1.1.0 milestone May 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants