]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix: tox not detecting deps changes 26409/head
authoralfonsomthd <almartin@redhat.com>
Wed, 13 Feb 2019 16:17:30 +0000 (17:17 +0100)
committeralfonsomthd <almartin@redhat.com>
Wed, 13 Feb 2019 16:17:30 +0000 (17:17 +0100)
* tox.ini: replaced 'deps' setting by appropriate commands
  due to this bug:
  https://github.com/tox-dev/tox/issues/149
  tox is not detecting changes in requirements.txt when using
  'deps' setting in 'tox.ini'.

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/tox.ini

index e0876f4eb2f890ee758b889f31f38f8b29a373fd..96ccc522f503b166057382f18a401c870bd6c392 100644 (file)
@@ -5,10 +5,6 @@ toxworkdir = {env:CEPH_BUILD_DIR}/dashboard
 minversion = 2.8.1
 
 [testenv]
-deps =
-    -r{toxinidir}/requirements.txt
-    py27: -r{toxinidir}/requirements-py27.txt
-    py3: -r{toxinidir}/requirements-py3.txt
 setenv=
     CFLAGS = -DXMLSEC_NO_SIZE_T
     UNITTEST = true
@@ -20,6 +16,9 @@ setenv=
     cov:  UNITTEST = true
     cov:  COVERAGE_FILE = .coverage.{envname}
 commands=
+    pip install -r {toxinidir}/requirements.txt
+    py27: pip install -r {toxinidir}/requirements-py27.txt
+    py3: pip install -r {toxinidir}/requirements-py3.txt
     cov: coverage erase
     cov: {envbindir}/py.test --cov=. --cov-report= --junitxml=junit.{envname}.xml --doctest-modules controllers/rbd.py services/ tests/ tools.py
     cov: coverage combine {toxinidir}/{env:COVERAGE_FILE}