Merge pull request #254 from erijo/misc
This commit is contained in:
commit
90901e588e
2 changed files with 5 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -93,7 +93,7 @@ test:
|
|||
cd /yadm && \
|
||||
py.test -v $(testargs); \
|
||||
else \
|
||||
if command -v "docker-compose" &> /dev/null; then \
|
||||
if command -v "docker-compose" > /dev/null 2>&1; then \
|
||||
docker-compose run --rm testbed make test testargs="$(testargs)"; \
|
||||
else \
|
||||
echo "Sorry, this make test requires docker-compose to be installed."; \
|
||||
|
@ -102,8 +102,8 @@ test:
|
|||
fi
|
||||
|
||||
.PHONY: testhost
|
||||
testhost: version ?= HEAD
|
||||
testhost: require-docker
|
||||
@version=HEAD
|
||||
@rm -rf /tmp/testhost
|
||||
@git show $(version):yadm > /tmp/testhost
|
||||
@chmod a+x /tmp/testhost
|
||||
|
@ -117,8 +117,8 @@ testhost: require-docker
|
|||
bash -l
|
||||
|
||||
.PHONY: scripthost
|
||||
scripthost: version ?= HEAD
|
||||
scripthost: require-docker
|
||||
@version=HEAD
|
||||
@rm -rf /tmp/testhost
|
||||
@git show $(version):yadm > /tmp/testhost
|
||||
@chmod a+x /tmp/testhost
|
||||
|
@ -197,7 +197,7 @@ sync-clock:
|
|||
|
||||
.PHONY: require-docker
|
||||
require-docker:
|
||||
@if ! command -v "docker" &> /dev/null; then \
|
||||
@if ! command -v "docker" > /dev/null 2>&1; then \
|
||||
echo "Sorry, this make target requires docker to be installed."; \
|
||||
false; \
|
||||
fi
|
||||
|
|
2
yadm.1
2
yadm.1
|
@ -704,7 +704,7 @@ Examples:
|
|||
.I whatever##template
|
||||
with the following content
|
||||
|
||||
{% if yadm.user == 'harvey' %}
|
||||
{% if yadm.user == "harvey" %}
|
||||
config={{yadm.class}}-{{yadm.os}}
|
||||
{% else %}
|
||||
config=dev-whatever
|
||||
|
|
Loading…
Reference in a new issue