Remove obsolete make target

This commit is contained in:
Martin Schulze 2020-10-17 01:17:07 +02:00
parent 80bfc422a2
commit b7388d3b46
2 changed files with 4 additions and 9 deletions

View file

@ -13,7 +13,7 @@ Here's a quick guide:
refactoring and documentation changes require no new tests. If you are adding refactoring and documentation changes require no new tests. If you are adding
functionality or fixing a bug, we need tests! functionality or fixing a bug, we need tests!
4. Run the tests. `make build-no-cache generate-accounts run generate-accounts-after-run fixtures tests clean` 4. Run the tests. `make build-no-cache generate-accounts run fixtures tests clean`
5. Push to your fork and submit a pull request. If the changes will apply cleanly 5. Push to your fork and submit a pull request. If the changes will apply cleanly
to the master branch, you will only need to submit one pull request. to the master branch, you will only need to submit one pull request.

View file

@ -6,9 +6,9 @@ VCS_VERSION := $(shell git describe --tags --contains --always)
SLEEP = 15s SLEEP = 15s
all: build backup generate-accounts generate-accounts-after-run tests clean all: build backup generate-accounts tests clean
no-build: backup generate-accounts generate-accounts-after-run tests clean no-build: backup generate-accounts tests clean
complete_test: lint build generate-accounts generate-accounts-after-run tests complete_test: lint build generate-accounts tests
build: build:
docker build \ docker build \
@ -28,11 +28,6 @@ generate-accounts:
@ echo "# this is a test comment, please don't delete me :'(" >> test/config/postfix-accounts.cf @ echo "# this is a test comment, please don't delete me :'(" >> test/config/postfix-accounts.cf
@ echo " # this is also a test comment, :O" >> test/config/postfix-accounts.cf @ echo " # this is also a test comment, :O" >> test/config/postfix-accounts.cf
# TODO: ensure this is run per container after each container started!
generate-accounts-after-run:
# todo: noone seems to care about this?
#@ docker run --rm -e MAIL_USER=added@localhost.localdomain -e MAIL_PASS=mypassword -t $(NAME) /bin/sh -c 'echo "$$MAIL_USER|$$(doveadm pw -s SHA512-CRYPT -u $$MAIL_USER -p $$MAIL_PASS)"' >> test/config/postfix-accounts.cf
@ sleep $(SLEEP)
tests: tests:
./test/bats/bin/bats test/*.bats ./test/bats/bin/bats test/*.bats