Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: remove unnecessary ruby installation on Azure #559

Merged
merged 9 commits into from
Feb 10, 2022
Merged

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Feb 6, 2022

Scripts/build.sh Outdated
@@ -87,7 +87,7 @@ function xcbuild() {

function fastlane_test() {
if [[ -n "$XC_DESTINATION" ]]; then
SDK="$XC_SDK" DEST="$XC_DESTINATION" SCHEME="$1" bundle exec fastlane test
SDK="$XC_SDK" DEST="$XC_DESTINATION" SCHEME="$1" fastlane test
else
SDK="$XC_SDK" SCHEME="$1" bundle exec fastlane test

Choose a reason for hiding this comment

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

should we also remove bundle exec from here?

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 noticed Azure instance already has fastalne, so we can use pre-installed one in our usage. Let me try it.

@@ -87,7 +87,7 @@ function xcbuild() {

function fastlane_test() {
if [[ -n "$XC_DESTINATION" ]]; then
SDK="$XC_SDK" DEST="$XC_DESTINATION" SCHEME="$1" bundle exec fastlane test
SDK="$XC_SDK" DEST="$XC_DESTINATION" SCHEME="$1" fastlane test

Choose a reason for hiding this comment

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

shall we check first if fastlane is present using which? This might fail if we decide to chance CI once or run it locally

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, good idea. Will add it.

Copy link
Member Author

@KazuCocoa KazuCocoa Feb 8, 2022

Choose a reason for hiding this comment

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

@KazuCocoa KazuCocoa marked this pull request as draft February 7, 2022 06:11
@KazuCocoa KazuCocoa marked this pull request as ready for review February 7, 2022 07:57
@KazuCocoa KazuCocoa changed the title ci: bump Ruby and bundle update ci: remove unnecessary ruby installation on Azure Feb 7, 2022
@KazuCocoa
Copy link
Member Author

ok, it seems fastlane worked in the bundled one. This PR keeps Gemfile so that anyone can get fastlane as bundle install in this repo.

@mykola-mokhnach
Copy link

What is the reason to remove the lockfile?

@KazuCocoa
Copy link
Member Author

What is the reason to remove the lockfile?

Since the CI machine no longer uses it for now. It uses pre-installed one.
Afaik, Apple-related feature (e.g. push a release module to app store) strongly depends on fastlane version, but collecting test results like current our users do not. So we do not need to keep lockfile, which might get many outdated dependencies, for CI usage.

When we move to another CI, which has no-fastlane by default, or would like to keep this dev env for our local run, lockfile may help though.

@KazuCocoa KazuCocoa merged commit d5ad957 into master Feb 10, 2022
@KazuCocoa KazuCocoa deleted the bump-ruby branch February 10, 2022 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants