-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
29 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,54 @@ | ||
.PHONY: tests-deps-install | ||
tests-deps-install: ## Install dependencies for testing (supported only on Ubuntu) | ||
@echo "+ $@" | ||
sudo $(ROOT_DIR)/build/ci/scripts/install-deps.sh | ||
sudo $(SCRIPTS_DIR)/install-deps.sh | ||
|
||
.PHONY: kind-create | ||
kind-create: ## Creates a kind cluster | ||
@echo "+ $@" | ||
@( $(ROOT_DIR)/build/ci/scripts/kind.sh cluster create -y ) | ||
@( $(SCRIPTS_DIR)/kind.sh cluster create -y ) | ||
|
||
.PHONY: kind-get | ||
kind-get: ## Shows the current kind cluster | ||
@echo "+ $@" | ||
@( $(ROOT_DIR)/build/ci/scripts/kind.sh cluster get -y ) | ||
@( $(SCRIPTS_DIR)/kind.sh cluster get -y ) | ||
|
||
.PHONY: kind-delete | ||
kind-delete: ## Deletes kind cluster | ||
@echo "+ $@" | ||
@( $(ROOT_DIR)/build/ci/scripts/kind.sh cluster delete -y ) | ||
@( $(SCRIPTS_DIR)/kind.sh cluster delete -y ) | ||
|
||
.PHONY: kind-deploy | ||
kind-deploy: ## Deploys the p2p application to kind cluster | ||
@echo "+ $@" | ||
ifndef CONTAINER_REGISTRY | ||
$(eval CONTAINER_REGISTRY := $(shell echo "localhost")) | ||
endif | ||
@( $(ROOT_DIR)/build/ci/scripts/kind.sh app deploy -y $(CONTAINER_REGISTRY)/peerd:dev ) | ||
@( $(SCRIPTS_DIR)/kind.sh app deploy -y $(CONTAINER_REGISTRY)/peerd:dev ) | ||
|
||
.PHONY: kind-test-ctr | ||
kind-test-ctr: ## Deploys test 'ctr' to the kind cluster | ||
@echo "+ $@" | ||
@( $(ROOT_DIR)/build/ci/scripts/kind.sh test ctr -y ) | ||
@( $(SCRIPTS_DIR)/kind.sh test ctr -y ) | ||
|
||
.PHONY: kind-test-random | ||
kind-test-random: ## Deploys test 'random' to the kind cluster | ||
@echo "+ $@" | ||
ifndef CONTAINER_REGISTRY | ||
$(eval CONTAINER_REGISTRY := $(shell echo "localhost")) | ||
endif | ||
@( $(ROOT_DIR)/build/ci/scripts/kind.sh test random -y $(CONTAINER_REGISTRY)/random:dev ) | ||
@( $(SCRIPTS_DIR)/kind.sh test random -y $(CONTAINER_REGISTRY)/random:dev ) | ||
|
||
.PHONY: tests-ci-aks | ||
tests-ci-aks: ## Run CI in AKS | ||
@echo "+ $@" | ||
ifndef NODEPOOL | ||
$(eval NODEPOOL := $(shell date +"p2p%y%m%d")) | ||
endif | ||
ifndef PEERD_IMAGE_TAG | ||
$(eval PEERD_IMAGE_TAG := "dev") | ||
endif | ||
@echo "\033[92mRunning CI NODEPOOL: $(NODEPOOL)\033[0m" | ||
@( PEERD_IMAGE_TAG=$(PEERD_IMAGE_TAG) $(SCRIPTS_DIR)/azure.sh nodepool up -y $(NODEPOOL) ) | ||
@( $(SCRIPTS_DIR)/azure.sh test ctr -y $(NODEPOOL) ) | ||
@( $(SCRIPTS_DIR)/azure.sh nodepool delete -y $(NODEPOOL) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters