Sha256: 245fbec78878ed88e2c3a18fc5e25f920536b40e0051c989222fb188ffe20ca6

Contents?: true

Size: 1.22 KB

Versions: 24

Compression:

Stored size: 1.22 KB

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 "Waiting 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 -q -w $${v}; do \
	    echo -n '.'; \
	    sleep 3; \
	  done && \
	  echo
	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/ || make -C ~/dev/docker-image-fakes3/
	docker rm -f fakes3 || true
	docker run -ti --rm \
	  --name fakes3 \
	  -e HOSTNAME=b2d \
	  -p 4567:4567 \
	  -v /tmp/s3:/s3 \
	  planitar/fakes3

run-docker:
	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

24 entries across 24 versions & 1 rubygems

Version Path
plntr-fakes3-1.0.0.pre.10alpha39 Makefile
plntr-fakes3-1.0.0.pre.10alpha38 Makefile
plntr-fakes3-1.0.0.pre.10alpha37 Makefile
plntr-fakes3-1.0.0.pre.10alpha36 Makefile