From 8b625aedbd13d525d17e80d9aa9729eac54aedd7 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Sat, 4 Apr 2020 16:42:12 +0200 Subject: [PATCH] feat: add drone promose makefile target --- 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 -- libgit2 1.7.2