Skip to content

How to setup development environment on Windows

Eric Dugre edited this page Mar 8, 2019 · 9 revisions

Installation

Install ruby

  • use recommended version (currently Ruby+Devkit 2.5.3-1 (x64))
  • use preselected options when installing
  • for mingw selection use hit just ENTER Which components shall be installed? If unsure press ENTER [1,2,3]

Install bunder

gem install bundler -v 2.0.1

Add environment variable set

Run tests

  • git clone https://github.com/Kentico/delivery-sdk-ruby.git
  • cd delivery-sdk-ruby
  • Create .env file with environment variables ( CI is using faf446d2-0544-0039-bb43-5d6ef816661a)
    • You could generate your own sample project here
PROJECT_ID=<PLACE PREVIEW API KEY>
PREVIEW_KEY=<PLACE PREVIEW API KEY>
SECURE_KEY=<PLACE SECURE API KEY>
  • bundle (install all dependent packages)
  • bundle exec rake - runs all Tests

Build your package

  • bundle (install all dependent packages)
  • gem build delivery.gemspec
    • creates file delivery-sdk-ruby-<VERSION>.gem file in the project's root folder

Analytics

Clone this wiki locally