Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Manala makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo committed Nov 18, 2019
1 parent c9b7a9a commit 5890bfa
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions .manala/make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MANALA_DOCKER_RUN_OPTIONS = --privileged
MANALA_DOCKER_VOLUMES = \
$(ROLE_DIR):/etc/ansible/roles/$(ROLE) \
$(if $(CACHE_DIR), \
$(call if_in,$(DISTRIBUTION_ID),debian ubuntu, \
$(call if_in,$(DISTRIBUTION_ID),debian, \
$(CACHE_DIR)/$(DISTRIBUTION_ID)/$(DISTRIBUTION_RELEASE)/apt/archives:/var/cache/apt/archives \
$(CACHE_DIR)/$(DISTRIBUTION_ID)/$(DISTRIBUTION_RELEASE)/apt/lists:/var/lib/apt/lists \
) \
Expand Down Expand Up @@ -77,10 +77,6 @@ sh: .fail_if_host_not(local)
$(call log_warning,Shell on \"$(DISTRIBUTION)\" is not supported) \
)

SH_HELP += $(call if_in,debian.wheezy,$(ROLE_DISTRIBUTIONS),$(call help,sh.debian.wheezy, Open shell on test host - Debian Wheezy))
sh.debian.wheezy: DISTRIBUTION = debian.wheezy
sh.debian.wheezy: sh

SH_HELP += $(call if_in,debian.jessie,$(ROLE_DISTRIBUTIONS),$(call help,sh.debian.jessie, Open shell on test host - Debian Jessie))
sh.debian.jessie: DISTRIBUTION = debian.jessie
sh.debian.jessie: sh
Expand All @@ -93,14 +89,6 @@ SH_HELP += $(call if_in,debian.buster,$(ROLE_DISTRIBUTIONS),$(call help,sh.debia
sh.debian.buster: DISTRIBUTION = debian.buster
sh.debian.buster: sh

SH_HELP += $(call if_in,centos.7,$(ROLE_DISTRIBUTIONS),$(call help,sh.centos.7, Open shell on test host - CentOS 7))
sh.centos.7: DISTRIBUTION = centos.7
sh.centos.7: sh

SH_HELP += $(call if_in,ubuntu.xenial,$(ROLE_DISTRIBUTIONS),$(call help,sh.ubuntu.xenial, Open shell on test host - Ubuntu Xenial))
sh.ubuntu.xenial: DISTRIBUTION = ubuntu.xenial
sh.ubuntu.xenial: sh

##########
# Update #
##########
Expand All @@ -120,10 +108,6 @@ update: .fail_if_host_not(local)
) \
)

UPDATE_HELP += $(call if_in,debian.wheezy,$(ROLE_DISTRIBUTIONS),$(call help,update.debian.wheezy, Update test host - Debian Wheezy))
update.debian.wheezy: DISTRIBUTIONS = debian.wheezy
update.debian.wheezy: update

UPDATE_HELP += $(call if_in,debian.jessie,$(ROLE_DISTRIBUTIONS),$(call help,update.debian.jessie, Update test host - Debian Jessie))
update.debian.jessie: DISTRIBUTIONS = debian.jessie
update.debian.jessie: update
Expand All @@ -136,14 +120,6 @@ UPDATE_HELP += $(call if_in,debian.buster,$(ROLE_DISTRIBUTIONS),$(call help,upda
update.debian.buster: DISTRIBUTIONS = debian.buster
update.debian.buster: update

UPDATE_HELP += $(call if_in,centos.7,$(ROLE_DISTRIBUTIONS),$(call help,update.centos.7, Update test host - CentOS 7))
update.centos.7: DISTRIBUTIONS = centos.7
update.centos.7: update

UPDATE_HELP += $(call if_in,ubuntu.xenial,$(ROLE_DISTRIBUTIONS),$(call help,update.ubuntu.xenial, Update test host - Ubuntu Xenial))
update.ubuntu.xenial: DISTRIBUTIONS = ubuntu.xenial
update.ubuntu.xenial: update

########
# Lint #
########
Expand All @@ -170,10 +146,6 @@ lint@local: .fail_if_host_not(local)
lint@test: .fail_if_host_not(test)
ansible-lint --force-color -v $(ROLE_DIR)

LINT_HELP_LOCAL += $(call if_in,debian.wheezy,$(ROLE_DISTRIBUTIONS),$(call help,lint.debian.wheezy, Lint role - Debian Wheezy))
lint.debian.wheezy: DISTRIBUTIONS = debian.wheezy
lint.debian.wheezy: lint@local

LINT_HELP_LOCAL += $(call if_in,debian.jessie,$(ROLE_DISTRIBUTIONS),$(call help,lint.debian.jessie, Lint role - Debian Jessie))
lint.debian.jessie: DISTRIBUTIONS = debian.jessie
lint.debian.jessie: lint@local
Expand All @@ -186,14 +158,6 @@ LINT_HELP_LOCAL += $(call if_in,debian.buster,$(ROLE_DISTRIBUTIONS),$(call help,
lint.debian.buster: DISTRIBUTIONS = debian.buster
lint.debian.buster: lint@local

LINT_HELP_LOCAL += $(call if_in,centos.7,$(ROLE_DISTRIBUTIONS),$(call help,lint.centos.7, Lint role - CentOS 7))
lint.centos.7: DISTRIBUTIONS = centos.7
lint.centos.7: lint@local

LINT_HELP_LOCAL += $(call if_in,ubuntu.xenial,$(ROLE_DISTRIBUTIONS),$(call help,lint.ubuntu.xenial, Lint role - Ubuntu Xenial))
lint.ubuntu.xenial: DISTRIBUTIONS = ubuntu.xenial
lint.ubuntu.xenial: lint@local

########
# Test #
########
Expand Down Expand Up @@ -242,10 +206,6 @@ test@test: .fail_if_host_not(test)
$$(MAKE) $$(TEST) \
)

TEST_HELP_LOCAL += $(call if_in,debian.wheezy,$(ROLE_DISTRIBUTIONS),$(call help,test.debian.wheezy, Test role - Debian Wheezy))
test.debian.wheezy: DISTRIBUTIONS = debian.wheezy
test.debian.wheezy: test@local

TEST_HELP_LOCAL += $(call if_in,debian.jessie,$(ROLE_DISTRIBUTIONS),$(call help,test.debian.jessie, Test role - Debian Jessie))
test.debian.jessie: DISTRIBUTIONS = debian.jessie
test.debian.jessie: test@local
Expand All @@ -257,11 +217,3 @@ test.debian.stretch: test@local
TEST_HELP_LOCAL += $(call if_in,debian.buster,$(ROLE_DISTRIBUTIONS),$(call help,test.debian.buster, Test role - Debian Buster))
test.debian.buster: DISTRIBUTIONS = debian.buster
test.debian.buster: test@local

TEST_HELP_LOCAL += $(call if_in,centos.7,$(ROLE_DISTRIBUTIONS),$(call help,test.centos.7, Test role - CentOS 7))
test.centos.7: DISTRIBUTIONS = centos.7
test.centos.7: test@local

TEST_HELP_LOCAL += $(call if_in,ubuntu.xenial,$(ROLE_DISTRIBUTIONS),$(call help,test.ubuntu.xenial, Test role - Ubuntu Xenial))
test.ubuntu.xenial: DISTRIBUTIONS = ubuntu.xenial
test.ubuntu.xenial: test@local

0 comments on commit 5890bfa

Please sign in to comment.