mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-18 08:02:31 -05:00
Remove make commands we don't use
These are either just generally not being used or they've been superseeded by commands manually written in concourse
This commit is contained in:
21
Makefile
21
Makefile
@@ -53,18 +53,6 @@ production: ## Set environment to production
|
|||||||
generate-version-file: ## Generates the app version file
|
generate-version-file: ## Generates the app version file
|
||||||
@echo -e "__travis_commit__ = \"${GIT_COMMIT}\"\n__time__ = \"${DATE}\"\n__travis_job_number__ = \"${BUILD_NUMBER}\"\n__travis_job_url__ = \"${BUILD_URL}\"" > ${APP_VERSION_FILE}
|
@echo -e "__travis_commit__ = \"${GIT_COMMIT}\"\n__time__ = \"${DATE}\"\n__travis_job_number__ = \"${BUILD_NUMBER}\"\n__travis_job_url__ = \"${BUILD_URL}\"" > ${APP_VERSION_FILE}
|
||||||
|
|
||||||
.PHONY: build-paas-artifact
|
|
||||||
build-paas-artifact: ## Build the deploy artifact for PaaS
|
|
||||||
rm -rf target
|
|
||||||
mkdir -p target
|
|
||||||
zip -y -q -r -x@deploy-exclude.lst target/notifications-api.zip ./
|
|
||||||
|
|
||||||
.PHONY: upload-paas-artifact
|
|
||||||
upload-paas-artifact: ## Upload the deploy artifact for PaaS
|
|
||||||
$(if ${DEPLOY_BUILD_NUMBER},,$(error Must specify DEPLOY_BUILD_NUMBER))
|
|
||||||
$(if ${JENKINS_S3_BUCKET},,$(error Must specify JENKINS_S3_BUCKET))
|
|
||||||
aws s3 cp --region eu-west-1 --sse AES256 target/notifications-api.zip s3://${JENKINS_S3_BUCKET}/build/notifications-api/${DEPLOY_BUILD_NUMBER}.zip
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: generate-version-file ## Run tests
|
test: generate-version-file ## Run tests
|
||||||
./scripts/run_tests.sh
|
./scripts/run_tests.sh
|
||||||
@@ -97,9 +85,6 @@ prepare-docker-build-image: generate-version-file ## Prepare the Docker builder
|
|||||||
-t ${DOCKER_BUILDER_IMAGE_NAME} \
|
-t ${DOCKER_BUILDER_IMAGE_NAME} \
|
||||||
.
|
.
|
||||||
|
|
||||||
.PHONY: build-with-docker
|
|
||||||
build-with-docker: ; ## don't do anything
|
|
||||||
|
|
||||||
.PHONY: test-with-docker
|
.PHONY: test-with-docker
|
||||||
test-with-docker: prepare-docker-build-image create-docker-test-db ## Run tests inside a Docker container
|
test-with-docker: prepare-docker-build-image create-docker-test-db ## Run tests inside a Docker container
|
||||||
@docker run -it --rm \
|
@docker run -it --rm \
|
||||||
@@ -186,12 +171,6 @@ cf-rollback: ## Rollbacks the app to the previous release
|
|||||||
$(if ${CF_APP},,$(error Must specify CF_APP))
|
$(if ${CF_APP},,$(error Must specify CF_APP))
|
||||||
cf v3-cancel-zdt-push ${CF_APP}
|
cf v3-cancel-zdt-push ${CF_APP}
|
||||||
|
|
||||||
.PHONY: cf-push
|
|
||||||
cf-push:
|
|
||||||
$(if ${CF_APP},,$(error Must specify CF_APP))
|
|
||||||
cf target -o ${CF_ORG} -s ${CF_SPACE}
|
|
||||||
cf push ${CF_APP} -f <(make -s generate-manifest)
|
|
||||||
|
|
||||||
.PHONY: check-if-migrations-to-run
|
.PHONY: check-if-migrations-to-run
|
||||||
check-if-migrations-to-run:
|
check-if-migrations-to-run:
|
||||||
@echo $(shell python3 scripts/check_if_new_migration.py)
|
@echo $(shell python3 scripts/check_if_new_migration.py)
|
||||||
|
|||||||
Reference in New Issue
Block a user