Skip to content

Commit

Permalink
Merge pull request #7835 from Agoric/raph/ut-target-steps
Browse files Browse the repository at this point in the history
upgrade-test: split targets
  • Loading branch information
raphdev authored Jun 20, 2023
2 parents 657b621 + 8754b09 commit 5736604
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions packages/deployment/upgrade-test/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
REPOSITORY = agoric/upgrade-test
dockerLabel = latest
ifdef TARGET
buildTargetFlag = --target $(TARGET)
dockerLabel = $(TARGET)
endif
BOOTSTRAP_MODE?=main
TARGET?=agoric-upgrade-11
dockerLabel?=$(TARGET)
ifdef TMUX_CC
tmuxCC=1
else
tmuxCC=0
endif
@echo buildTargetFlag: $(buildTargetFlag)
@echo target: $(TARGET)

local_sdk:
(cd ../ && make docker-build-sdk)

agoric-upgrade-7-2:
docker build --build-arg BOOTSTRAP_MODE=$(BOOTSTRAP_MODE) --progress=plain --target agoric-upgrade-7-2 -t $(REPOSITORY):agoric-upgrade-7-2 -f Dockerfile upgrade-test-scripts

agoric-upgrade-8: agoric-upgrade-7-2
docker build --build-arg BOOTSTRAP_MODE=$(BOOTSTRAP_MODE) --progress=plain --target agoric-upgrade-8 -t $(REPOSITORY):agoric-upgrade-8 -f Dockerfile upgrade-test-scripts

agoric-upgrade-8-1: agoric-upgrade-8
docker build --build-arg BOOTSTRAP_MODE=$(BOOTSTRAP_MODE) --progress=plain --target agoric-upgrade-8-1 -t $(REPOSITORY):agoric-upgrade-8-1 -f Dockerfile upgrade-test-scripts

agoric-upgrade-9: agoric-upgrade-8-1
docker build --build-arg BOOTSTRAP_MODE=$(BOOTSTRAP_MODE) --progress=plain --target agoric-upgrade-9 -t $(REPOSITORY):agoric-upgrade-9 -f Dockerfile upgrade-test-scripts

agoric-upgrade-10: agoric-upgrade-9
docker build --build-arg BOOTSTRAP_MODE=$(BOOTSTRAP_MODE) --progress=plain --target agoric-upgrade-10 -t $(REPOSITORY):agoric-upgrade-10 -f Dockerfile upgrade-test-scripts

agoric-upgrade-11: agoric-upgrade-10
docker build --build-arg BOOTSTRAP_MODE=$(BOOTSTRAP_MODE) --progress=plain --target agoric-upgrade-11 -t $(REPOSITORY):agoric-upgrade-11 -f Dockerfile upgrade-test-scripts

# build main bootstrap
build:
docker build --build-arg BOOTSTRAP_MODE=main --progress=plain $(buildTargetFlag) -t $(REPOSITORY):$(dockerLabel) -f Dockerfile upgrade-test-scripts
build: $(TARGET)

# build test bootstrap
build_test:
docker build --build-arg BOOTSTRAP_MODE=test --progress=plain $(buildTargetFlag) -t $(REPOSITORY):$(dockerLabel) -f Dockerfile upgrade-test-scripts
build_test: BOOTSTRAP_MODE=test
build_test: $(TARGET)

run:
docker run --rm -it -e "DEST=1" -e "TMUX_USE_CC=$(tmuxCC)" -p 26656:26656 -p 26657:26657 -p 1317:1317 --entrypoint "/usr/src/agoric-sdk/upgrade-test-scripts/start_to_to.sh" -v "$${PWD}:/workspace" $(REPOSITORY):$(dockerLabel)

.PHONY: local_sdk agoric-upgrade-7-2 agoric-upgrade-8 agoric-upgrade-8-1 agoric-upgrade-9 agoric-upgrade-10 agoric-upgrade-11 build build_test run

0 comments on commit 5736604

Please sign in to comment.