File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 77
88test :
99 $(MAKE ) -C tests
10-
Original file line number Diff line number Diff line change 1- TEST_FLAGS ?=
1+ TEST_FLAGS ?=
22
33GODEBUG ?=x509negativeserial=1
44
55export GODEBUG
66
77all : test-all
88
9- test :
9+ venv :
10+ $(MAKE ) -C ansible venv
11+
12+ test : venv
1013 go test \
1114 -failfast \
1215 -timeout 30m \
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ PATH := $(VIRTUAL_ENV)/bin:$(PATH)
33PYTHON_BIN ?= $(VIRTUAL_ENV ) /bin/python
44TARGET ?= none
55REQUIREMENTS_FILE ?= requirements.txt
6+ ANSIBLE_CONFIG ?= $(shell pwd) /ansible.cfg
67
78export PATH
89
910.venv :
1011 python3 -m venv $(VIRTUAL_ENV )
1112
12- venv : .venv
13+ venv : .venv pip-install
1314
1415pip-freeze :
1516 $(PYTHON_BIN ) -m pip freeze > $(REQUIREMENTS_FILE )
@@ -20,13 +21,11 @@ pip-install:
2021server-up :
2122 ansible-playbook \
2223 -l " $( TARGET) " \
23- -i inventory.yml \
2424 --tags up \
2525 -v playbook.yml
2626
2727server-down :
2828 ansible-playbook \
2929 -l " $( TARGET) " \
30- -i inventory.yml \
3130 --tags down \
3231 -v playbook.yml
Original file line number Diff line number Diff line change 11all :
22 vars :
3- ansible_python_interpreter : python3
43 ansible_connection : local
4+ ansible_python_interpreter : ./.venv/bin/python
55 docker_public_registry : mirror.gcr.io/
66 db_username : upper_db_user
77 db_password : upp3r//S3cr37
You can’t perform that action at this time.
0 commit comments