`
shappy1978
  • 浏览: 679176 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Calabash

 
阅读更多

//calabash-cucumber for ios

https://www.moncefbelyamani.com/ios-automated-testing-with-calabash-cucumber-ruby/

https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#lion-install  //install tools for dev

 

* xcode-select --install  //xcoce-select

* http://developer.apple.com/downloads, search for "command line tools", select the package for OSX and XCode, download and install

 

 

* ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  //install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

//uninstall brew

 

on mac os 10.11.5, it will report that brew is already install, but can't find brew while running. the solution is: rm -r /usr/local/.git before install (http://www.zhihu.com/question/35928898)

* brew update

  brew install git

* echo "gem: --no-document" >> ~/.gemrc //disable rvm document

* before install rvm, check the gem source first

if you do not have vpn, remove the default source first: $ gem source --remove https://rubygems.org/

//install rvm fail, shell_session_update: command not found

gem source --remove http://ruby.taobao.org/

gem source --add https://ruby.taobao.org

//gem is package manager for ruby, gem source --list can list the source, check https://ruby.taobao.org to check why we need to add this source

curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails

 

type rvm | head -1  //check if rvm works, if rvm not found, need to restart terminal

* ruby -v  //ruby 2.2.0 or higher

rvm reinstall 2.2.0 --disable-binary   //if no ruby

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics