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

Execute lint step using bundler #66

Merged
merged 1 commit into from
Aug 13, 2017
Merged

Execute lint step using bundler #66

merged 1 commit into from
Aug 13, 2017

Conversation

djbe
Copy link
Member

@djbe djbe commented Aug 13, 2017

includes some xcode9 changes

@djbe djbe mentioned this pull request Aug 13, 2017
@djbe djbe added this to the 2.1.0 milestone Aug 13, 2017
@@ -216,7 +216,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if [[ ! $CI ]]; then\n rake lint:tests\n rake lint:output\nfi";
shellScript = "if [[ ! $CI ]]; then\n [[ -r ~/.profile ]] && source ~/.profile\n [[ `which rbenv` ]] && eval \"$(rbenv init - --no-rehash sh)\"\n if [[ `which bundler` ]]; then\n bundle exec rake lint:tests\n bundle exec rake lint:output\n else\n echo \"warning: bundler not found, can't lint code. Please install bundler then run bundle install.\"\n fi\nfi";
Copy link
Collaborator

@AliSoftware AliSoftware Aug 13, 2017

Choose a reason for hiding this comment

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

I'm not using rbenv so not sure why that would be necessary (if it always is, why isn't it in your ~/.profile for every new shell?), but if we really need to add that here for rbenv users, then we should apply that to other repositories too.

Copy link
Member Author

Choose a reason for hiding this comment

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

I had to add this for myself, I use zsh which doesn't use .profile.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right. I use zsh too, but I include the .profile in my .zshrc:

[[ -r ~/.profile ]] && source ~/.profile

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, but I don't use a .profile anymore. I have zprezto, which loads rbenv automatically. No idea what happens if I try to load rbenv twice.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need to init rbenv in the first place, while we're using system ruby for all our Rakefiles and ruby scripts?

Copy link
Member Author

Choose a reason for hiding this comment

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

I get errors with the bundler stuff. I'm telling you, my ruby stuff is always messed up, it's cursed 😢
I'll add that rbenv in my .profile, hopefully nothing else breaks 🤞

@djbe djbe merged commit f94c2ab into master Aug 13, 2017
@djbe djbe deleted the feature/xcode9 branch August 13, 2017 20:22
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