Lowering tox version for yaql tests
On target infra nodes there are old tox version, so we need to lower it in library to get an ability to test yaql. At the same time we need to make workaround of nailgun installation due to old pip and tox versions on CI. Change-Id: I4a2512e69d52c3d0b7cd82c656f6c49feb884d0c Partial-Bug: #1588910
This commit is contained in:
parent
945c026e50
commit
dec3a4eba1
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
# It is a workaround for old pip and tox versions. CI uses tox 1.6 and it
|
||||
# can't manage hash symbols right way (look at
|
||||
# https://bitbucket.org/hpk42/tox/issues/181/hash-number-sign-cannot-be-escaped-in)
|
||||
# We can use deps field for tox but at the same time CI uses pip 1.5.4 and it
|
||||
# can't properly install package from a vcs subdirectory. Also we can't just
|
||||
# update pip from tox deps as dependencies doesn't managed in a consequent way in tox.
|
||||
# TODO(sbog): move this into tox configuration when CI will use newer versions of tox and pip (tested for pip 7.1.2 and tox 2.3.1)
|
||||
pip install -e "git+https://github.com/openstack/fuel-web.git#egg=nailgun&subdirectory=nailgun"
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
set -eux
|
||||
DIR=`dirname $0`
|
||||
cd "${DIR}" || exit 1
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
[tox]
|
||||
minversion = 1.7.1
|
||||
minversion = 1.6
|
||||
envlist = py27
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
deps = PyYAML
|
||||
docopt
|
||||
-egit+https://github.com/openstack/fuel-web.git#egg=nailgun&subdirectory=nailgun
|
||||
commands = python check_yaqls.py
|
||||
deps = docopt
|
||||
commands =
|
||||
pip install pip --upgrade
|
||||
./install_nailgun.sh
|
||||
python check_yaqls.py
|
||||
|
|
Loading…
Reference in New Issue