Makefile: test-satellite-cfg-change improvements (#1915)

* Clarifies that the test-satellite-cfg-change is for being run by
  Jenkins as others are.
* Move the target for updating the satellite configuration lock file to
  a new Makefile group, called "Tooling".
* Change how it's run the script update-satellite-cfg-lock.sh for
  ensuring that the outcome is the same when running from different
  machines.
This commit is contained in:
Ivan Fraixedes 2019-05-09 15:25:44 +02:00 committed by Egon Elbre
parent 4002ed4463
commit 838476f164

View File

@ -91,14 +91,10 @@ test-sim: ## Test source with storj-sim (jenkins)
@./scripts/test-sim.sh
.PHONY: test-satellite-cfg-change
test-satellite-cfg-change: ## Test if the satellite config file has changed
test-satellite-cfg-change: ## Test if the satellite config file has changed (jenkins)
@echo "Running ${@}"
@cd scripts; ./test-satellite-cfg-change.sh
.PHONY: test-update-satellite-cfg-lock
test-update-satellite-cfg-lock: ## Update the satellite config lock file
@cd scripts; ./update-satellite-cfg-lock.sh
.PHONY: test-certificate-signing
test-certificate-signing: ## Test certificate signing service and storagenode setup (jenkins)
@echo "Running ${@}"
@ -272,3 +268,16 @@ clean-images:
test-docker-clean: ## Clean up Docker environment used in test-docker target
-docker-compose down --rmi all
##@ Tooling
.PHONY: update-satellite-cfg-lock
update-satellite-cfg-lock: ## Update the satellite config lock file
@docker run -ti --rm \
-v ${GOPATH}/pkg/mod:/go/pkg/mod \
-v $(shell pwd):/storj \
-v $(shell go env GOCACHE):/go-cache \
-e "GOCACHE=/go-cache" \
-u root:root \
golang:${GO_VERSION} \
/bin/bash -c "cd /storj/scripts; ./update-satellite-cfg-lock.sh"