Test integrity of requirements before release

This commit is contained in:
Martin Mahner 2019-12-18 17:46:31 +01:00
parent 09ed6aa845
commit b1aad7706a

View file

@ -44,6 +44,8 @@ js: ## Compile JS files
.PHONY: release-docker .PHONY: release-docker
release-docker: release-docker:
set -ex set -ex
pip-compile --dry-run setup.py
docker-compose build
docker-compose run --rm app pytest dpaste/ docker-compose run --rm app pytest dpaste/
docker build --build-arg BUILD_EXTRAS=production -t barttc/dpaste:latest . docker build --build-arg BUILD_EXTRAS=production -t barttc/dpaste:latest .
@echo -e "\n\n💫 All fine. Now do: docker push barttc/dpaste:latest" @echo -e "\n\n💫 All fine. Now do: docker push barttc/dpaste:latest"
@ -51,6 +53,8 @@ release-docker:
.PHONY: release-pypi .PHONY: release-pypi
release-pypi: release-pypi:
set -ex set -ex
pip-compile --dry-run setup.py
docker-compose build
docker-compose run --rm app pytest dpaste/ docker-compose run --rm app pytest dpaste/
rm -rf ./node_modules rm -rf ./node_modules
npm ci npm ci