summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zuul.yaml26
-rw-r--r--test-requirements.txt2
-rwxr-xr-xtools/tox_install.sh31
-rw-r--r--tox.ini8
4 files changed, 31 insertions, 36 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 0000000..2d001c1
--- /dev/null
+++ b/.zuul.yaml
@@ -0,0 +1,26 @@
+- project:
+ templates:
+ - openstack-python-jobs
+ - openstack-python35-jobs
+ - publish-openstack-sphinx-docs
+ - check-requirements
+ - openstack-pypy-jobs-nonvoting
+ - lib-forward-testing
+ - release-notes-jobs
+ check:
+ jobs:
+ - legacy-swift-dsvm-functional
+ - legacy-swift-dsvm-functional-identity-v3-only:
+ voting: false
+ - legacy-swiftclient-dsvm-functional
+ - legacy-swiftclient-dsvm-functional-identity-v3-only:
+ voting: false
+ - openstack-tox-py36:
+ voting: false
+ gate:
+ jobs:
+ - legacy-swift-dsvm-functional
+ - legacy-swiftclient-dsvm-functional
+ post:
+ jobs:
+ - openstack-tox-cover
diff --git a/test-requirements.txt b/test-requirements.txt
index 0ce9cec..1743a8c 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -5,3 +5,5 @@ mock>=1.2
oslosphinx>=4.7.0 # Apache-2.0
sphinx>=1.1.2,<1.2
testrepository>=0.0.18
+keystoneauth1>=3.1.0 # Apache-2.0
+python-keystoneclient>=3.8.0 # Apache-2.0 \ No newline at end of file
diff --git a/tools/tox_install.sh b/tools/tox_install.sh
deleted file mode 100755
index 15aa9de..0000000
--- a/tools/tox_install.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-
-# Client constraint file contains this client version pin that is in conflict
-# with installing the client from source. We should remove the version pin in
-# the constraints file before applying it for from-source installation.
-
-set -e
-
-if [[ -z "$CONSTRAINTS_FILE" ]]; then
- echo 'WARNING: expected $CONSTRAINTS_FILE to be set' >&2
- PIP_FLAGS=(-U)
-else
- # NOTE(tonyb): Place this in the tox enviroment's log dir so it will get
- # published to logs.openstack.org for easy debugging.
- localfile="$VIRTUAL_ENV/log/upper-constraints.txt"
-
- if [[ "$CONSTRAINTS_FILE" != http* ]]; then
- CONSTRAINTS_FILE="file://$CONSTRAINTS_FILE"
- fi
- curl "$CONSTRAINTS_FILE" --insecure --progress-bar --output "$localfile"
-
- pip install -c"$localfile" openstack-requirements
-
- # This is the main purpose of the script: Allow local installation of
- # the current repo. It is listed in constraints file and thus any
- # install will be constrained and we need to unconstrain it.
- edit-constraints "$localfile" -- "$CLIENT_NAME"
- PIP_FLAGS=(-c"$localfile" -U)
-fi
-
-pip install "${PIP_FLAGS[@]}" "$@"
diff --git a/tox.ini b/tox.ini
index 638e97b..e107f1d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,17 +5,15 @@ skipsdist = True
[testenv]
usedevelop = True
-install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
+install_command = pip install {opts} {packages}
setenv =
LANG=en_US.utf8
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
CLIENT_NAME=python-swiftclient
- CONSTRAINTS_FILE={env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike}
-
-deps = -r{toxinidir}/requirements.txt
+deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike}
+ -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
- .[keystone]
commands = sh -c '(find . -not \( -type d -name .?\* -prune \) \
\( -type d -name "__pycache__" -or -type f -name "*.py[co]" \) \
-print0; find . -name "*.dbm*" -print0) | xargs -0 rm -rf'