Sha256: bae2ff56b7b1e309177bf3d044595764a6ffd1cdb41bda32187dfc0415ae8ac1

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

#!/usr/bin/env bash

set -e

extension_name="solidus_stripe"
app_name="dummy-app"

bin/rails-new "$app_name"

# Stay away from the bundler env of the containing extension.
function unbundled {
  echo "~~> Running: $@"
  ruby -rbundler -e'Bundler.with_unbundled_env {system *ARGV}' -- env BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES=true "$@"
}

cd ./dummy-app

# Coverage
echo "require_relative '../../coverage.rb' if ENV['COVERAGE']" >> config/boot.rb
echo "gem 'rspec_junit_formatter', require: false" >> Gemfile
echo "gem 'simplecov', '~> 0.22', require: false" >> Gemfile
echo "gem 'simplecov-cobertura', require: false" >> Gemfile
unbundled bundle install

unbundled bundle add solidus --github solidusio/solidus --branch "${SOLIDUS_BRANCH:-master}" --version '> 0.a'
unbundled bundle exec rake db:drop db:create
unbundled bundle exec rails generate solidus:install --auto-accept --payment-method=none --no-seed --no-sample "$@"
unbundled bundle add $extension_name --path ..
unbundled bundle exec rails generate $extension_name:install --migrate --load-seeds=false --specs=all

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_stripe-5.0.0.rc.2 bin/dummy-app
solidus_stripe-5.0.0.rc.1 bin/dummy-app
solidus_stripe-5.0.0.alpha.1 bin/dummy-app