forked from trustwallet/trust-wallet-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/update project configuration (trustwallet#890)
* Modify: Makefile to Use Bundler Force Makefile commands use bundler to keep consistent environment. * Update: Gems
- Loading branch information
1 parent
ee40dac
commit 1d6d065
Showing
2 changed files
with
49 additions
and
44 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
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,24 +1,34 @@ | ||
.DEFAULT_GOAL := bootstrap | ||
|
||
exists_pod = $(shell command -v pod 2> /dev/null) | ||
exists_bundler = $(shell command -v bundle 2> /dev/null) | ||
bundle_check = $(shell bundle check 1> /dev/null; echo $$?) | ||
|
||
install_env: | ||
|
||
ifeq "${exists_pod}" "" | ||
sudo gem install cocoapods | ||
ifeq "${exists_bundler}" "" | ||
sudo gem install bundler | ||
endif | ||
|
||
@echo "All dependencies was installed" | ||
|
||
install: | ||
|
||
ifeq "${exists_pod}" "" | ||
@echo "Cocopods is not installed. Use `make install_env`" | ||
ifeq "${exists_bundler}" "" | ||
@echo "Bundler is not installed. Use `make install_env`" | ||
endif | ||
|
||
pod install --repo-update | ||
ifneq ($(bundle_check), 0) | ||
bundle install | ||
endif | ||
|
||
bundle exec pod install --repo-update | ||
|
||
bootstrap: install | ||
|
||
release: | ||
fastlane release | ||
|
||
ifeq "${exists_bundler}" "" | ||
@echo "Bundler is not installed. Use `make install_env`" | ||
endif | ||
|
||
bundle exec fastlane release |