Sha256: 5edec28c41068cf5496804395c6e44b7a511d1018f85d0a6d866455927ece044

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

.PHONY: update-version codegen-format test ci-test
update-version:
	@echo "$(VERSION)" > VERSION
	@perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb

codegen-format:
	bundle install --quiet
	bundle exec rubocop --autocorrect

ci-test:
	bundle install && bundle exec rake test
	@version=$$(ruby -e "puts RUBY_VERSION.split('.')[0..1].join.to_i"); \
	if [ $$version -ge 27 ]; then \
		echo "Ruby version >= 2.7, continue with srb tc"; \
		bundle exec srb tc; \
	else \
		echo "Ruby version < 2.7, skipping srb tc"; \
	fi

test: ci-test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripe-11.0.0 Makefile