diff options
author | Devaev Maxim <[email protected]> | 2018-11-16 09:25:39 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-16 09:25:39 +0300 |
commit | cd6e490d0f68147980dcf62bea5aace1b05d59e6 (patch) | |
tree | 76cb1a6f66ca4b50236333588c51190570c418ef /Makefile | |
parent | 17c6b9e31f9910c30ac660476e7bed8103f3935e (diff) |
moved tox to testenv
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -22,13 +22,14 @@ all: cat Makefile -run-no-cache: - make run TESTENV_OPTS=--no-cache +tox: _testenv + - docker run --rm \ + --volume `pwd`:/kvmd \ + -it $(TESTENV_IMAGE) bash -c "cd kvmd && tox -c testenv/tox.ini" -run: +run: _testenv sudo modprobe loop - docker build $(TESTENV_OPTS) --rm --tag $(TESTENV_IMAGE) -f testenv/Dockerfile . - docker run --rm \ --volume `pwd`/kvmd:/kvmd:ro \ --volume `pwd`/web:/usr/share/kvmd/web:ro \ @@ -43,6 +44,10 @@ run: - docker run --rm --device=$(TESTENV_LOOP):/dev/kvmd-msd -it $(TESTENV_IMAGE) losetup -d /dev/kvmd-msd +run-no-cache: + make run TESTENV_OPTS=--no-cache + + shell: make run TESTENV_CMD=/bin/bash @@ -60,11 +65,6 @@ release: make push make clean - -tox: - tox - - bump: bumpversion minor @@ -76,9 +76,16 @@ push: clean: rm -rf build site dist pkg src *.egg-info kvmd-*.tar.gz - find -name __pycache__ | xargs rm -rf + find kvmd -name __pycache__ | xargs rm -rf + rm -rf __pycache__ make -C hid clean -clean-all: clean - rm -rf .tox .mypy_cache +clean-all: _testenv clean + - docker run --rm \ + --volume `pwd`:/kvmd \ + -it $(TESTENV_IMAGE) bash -c "cd kvmd && rm -rf testenv/{.tox,.mypy_cache}" + + +_testenv: + docker build $(TESTENV_OPTS) --rm --tag $(TESTENV_IMAGE) -f testenv/Dockerfile . |