Sha256: 3576b63cdcfacaa2880de6880ef295bdec61935c1f94e78bbc0c4692292d4e42

Contents?: true

Size: 978 Bytes

Versions: 1

Compression:

Stored size: 978 Bytes

Contents

.PHONY: build-run-docker test 

build-run-docker:
	gem build ./fakes3.gemspec | tee gem-build.txt
	gem push $$(grep '^  File: ' gem-build.txt | sed 's@^  File: @@')
	echo "Wait for gem to appear in the repo" && \
	  v=$$(grep '^  File: ' gem-build.txt | sed -e 's@^  File: plntr-fakes3-@@' -e 's@\.gem$$@@') && \
	  until gem list plntr-fakes3 -r --prerelease | grep -w $${v}; do \
	    sleep 3; \
	  done
	v=$$(grep '^  File: ' gem-build.txt | sed -e 's@^  File: plntr-fakes3-@@' -e 's@\.gem$$@@') && \
	  sed -i "s/^PLNTR_FAKES3_VERSION=.*/PLNTR_FAKES3_VERSION=$${v}/" \
	    ~/dev/docker-image-fakes3/Makefile
	make -C ~/dev/docker-image-fakes3/
	docker rm -f fakes3 || true
	docker run -ti --rm \
	  -e HOSTNAME=b2d \
	  -p 4567:4567 \
	  -v /tmp/s3:/s3 \
	  planitar/fakes3

build-test-container:
	docker build -t fake-s3 .

test: build-test-container
	docker run --rm --add-host="posttest.localhost:127.0.0.1" -e "RUBYOPT=-W0" fake-s3 sh -c "rake test_server & rake test"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plntr-fakes3-1.0.0.pre.10alpha14 Makefile