Sha256: 9c2d4fff8361409162ba727beb01e11070613ef35a2791143ad5fe410ae9cef9

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

RAILS_ENV = test
BUNDLE = RAILS_ENV=${RAILS_ENV} bundle
BUNDLE_OPTIONS = --jobs=2
RSPEC = rspec
APPRAISAL = appraisal

all: test

test: configs bundler appraisal
	${BUNDLE} exec ${APPRAISAL} ${RSPEC} spec 2>&1

define DATABASE_YML
test:
  adapter: postgresql
  database: docker
  username: docker
  host: localhost
  min_messages: warning
endef
export DATABASE_YML

configs:
	echo "$${DATABASE_YML}" > spec/internal/config/database.yml

bundler:
	if ! gem list bundler -i > /dev/null; then \
	  gem install bundler; \
	fi
	${BUNDLE} install ${BUNDLE_OPTIONS}

appraisal:
	${BUNDLE} exec ${APPRAISAL} install

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apress-validators-0.1.0 Makefile