@@ -22,21 +22,21 @@ ci: test publish_pacts can_i_deploy $(DEPLOY_TARGET)
2222# Run the ci target from a developer machine with the environment variables
2323# set as if it was on Travis CI.
2424# Use this for quick feedback when playing around with your workflows.
25- fake_ci : .env
25+ fake_ci :
2626 CI=true \
2727 GIT_COMMIT=` git rev-parse --short HEAD` +` date +%s` \
2828 GIT_BRANCH=` git rev-parse --abbrev-ref HEAD` \
2929 make ci
3030
3131
32- publish_pacts : .env
32+ publish_pacts :
3333 @" ${PACT_CLI} " publish ${PWD} /pacts --consumer-app-version ${GIT_COMMIT} --tag ${GIT_BRANCH} --branch ${GIT_BRANCH}
3434
3535# # =====================
3636# # Build/test tasks
3737# # =====================
3838
39- test : .env
39+ test :
4040 python3 -m pytest
4141
4242# # =====================
@@ -51,7 +51,7 @@ deploy: deploy_app record_deployment
5151no_deploy :
5252 @echo " Not deploying as not on main branch"
5353
54- can_i_deploy : .env
54+ can_i_deploy :
5555 @" ${PACT_CLI} " broker can-i-deploy \
5656 --pacticipant ${PACTICIPANT} \
5757 --version ${GIT_COMMIT} \
@@ -62,7 +62,7 @@ can_i_deploy: .env
6262deploy_app :
6363 @echo " Deploying to production"
6464
65- record_deployment : .env
65+ record_deployment :
6666 @" ${PACT_CLI} " broker record-deployment --pacticipant ${PACTICIPANT} --version ${GIT_COMMIT} --environment production
6767
6868# # =====================
@@ -101,16 +101,13 @@ test_github_webhook:
101101# # Misc
102102# # ======================
103103
104- .env :
105- touch .env
106-
107104.PHONY : test
108105
109106# # ======================
110107# # Python additions
111108# # ======================
112109PROJECT := example-consumer-python-sns
113- PYTHON_MAJOR_VERSION := 3.8
110+ PYTHON_MAJOR_VERSION := 3.11
114111
115112sgr0 := $(shell tput sgr0)
116113red := $(shell tput setaf 1)
0 commit comments