Skip to content

v2.0.0

Compare
Choose a tag to compare
@ppxl ppxl released this 11 Dec 12:27
· 593 commits to develop since this release

New release v2.0.0 πŸŽ‰ 🍰

Please note: Breaking change ahead.

Added

Support of proper integration tests (#28)

By default all go packages in the project are subject to the integration-test target. To reduce the foot print and test run time the variable containing the selected packages can be overwritten in the main Makefile like this (after including the variables.mk files but before the integration test inclusion.

This example extracts only the package paths for the packages tasks and registry:

PACKAGES_FOR_INTEGRATION_TEST=$(shell go list ./... | grep 'tasks\|registry')

Provide custom clean target (#26)

  • Added customizable clean target
    • This comes handy if more files and directory should be removed during clean than the common stuff
    • Appending one's own clean target is easily done by defining the variable ADDITIONAL_CLEAN with a custom target name

Changed

Moved update-makefiles target to its own file (#28)

Previously the main Makefile was the place to accommodate the update-makefiles target.
Since it is encouraged (even more: necessary) to edit the main Makefile in order to customize a project's build process this file is never going to be updated. In order to allow the migration process of updating this routine moves to the self-update.mk file.

After updating to this version you SHOULD remove the update-makefiles from the main Makefile in order to avoid make target conflicts.

Please note, if the update-makefiles target is called, all filial makefiles under build/make/ are deleted. The directory build/make/ are not supposed to contain manual changes. Instead file a Feature Request in the makefiles repo and update to the following release version.

support integration test target (#28)

  • Changes in test makefiles to support proper integration tests

Please include these files for your tests. It is possible to include neither, only one, or both files for unit and integration tests. Both need test-common.mk included beforehand.

  • test-common.mk
    • this should be included first because both depend on it
  • test-unit.mk
  • test-integration

Removed

The test-related filial makefiles integration-test.mk and unit-test-docker-compose.mk are deleted in favour of new makefiles which sort better in a directory listing (#28)

Fix

  • Moved a debian related variable to package-debian.mk to remove an error message (#30)
  • Removed cleaning the directory under ${DEBIAN_BUILD_DIR} during clean
    • This is a specific clean target which belongs to the project's makefile
    • Appending one's own clean target is easily done by defining the variable ADDITIONAL_CLEAN with a custom target name (#25)