Sha256: 99f9b7c9586f2a7063fb5a5f6ab45d0376c095c2a1dceb287f7a95e730bd6045

Contents?: true

Size: 988 Bytes

Versions: 1

Compression:

Stored size: 988 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: @@')
	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
	@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 1; \
	  done
	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/fakes

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.10alpha11 Makefile