index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2020-04-04 14:42:12.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2020-04-04 14:42:12.0 +00:00:00
commit
8b625aedbd13d525d17e80d9aa9729eac54aedd7 [patch]
tree
d4cf1c5917b0f878fc73dff4fa390dc1f05144b6
parent
4ae5b1a50b0f314df619d951fe72c6f2fccef84f
download
8b625aedbd13d525d17e80d9aa9729eac54aedd7.tar.gz

feat: add drone promose makefile target



Diff

 Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c0ff4eb..88fed89 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ darwin:

test:
	@echo "Testing application..."
	@rustc --version
	@rustc -vV
	@cargo test
.PHONY: test

@@ -107,7 +107,7 @@ define build_release =
	set -u

	echo "Compiling application..."
	rustc --version
	rustc -vV
	echo "Compiling release binary for $(PKG_TARGET)..."
	cargo build --release --target $(PKG_TARGET)
	echo
@@ -209,6 +209,10 @@ prod.release.dockerfiles:
	./docker/version.sh v$(PKG_TAG)
.ONESHELL: prod.release.dockerfiles

promote:
	@drone build promote joseluisq/static-web-server $(BUILD) $(ENV)
.PHONY: promote

loadtest:
	@echo "GET http://localhost:1234" | \
		vegeta -cpus=12 attack -workers=10 -duration=5s -connections=10000 -rate=200 -http2=false > results.bin