summaryrefslogtreecommitdiff
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Update UPPER_CONSTRAINTS_FILE for stable/rockyOpenStack Release Bot2018-07-261-4/+4
| | | | | | | | | | | | | | | | | | The new stable upper-constraints file is only available after the openstack/requirements repository is branched. This will happen around the RC1 timeframe. Recheck and merge this change once the requirements repository has been branched. The CI system will work with this patch before the requirements repository is branched because zuul configues the job to run with a local copy of the file and defaults to the master branch. However, accepting the patch will break the test configuration on developers' local systems, so please wait until after the requirements repository is branched to merge the patch. Change-Id: I623cd9b65afae23f74e777f8db75ca286c5111a3
* Replace pbr autodoc with sphinxcontrib-apidocStephen Finucane2018-07-101-2/+3
| | | | | | | | | This fixes local building of the documentation using tox, and allows the gate to stop relying on pbr and move completely to the new docs PTI. http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html Change-Id: I485acda07098a435753e91c1ca45e586de199c35
* add lower-constraints jobDoug Hellmann2018-03-251-0/+7
| | | | | | | | | | | | | | | | | Create a tox environment for running the unit tests against the lower bounds of the dependencies. Create a lower-constraints.txt to be used to enforce the lower bounds in those tests. Add openstack-tox-lower-constraints job to the zuul configuration. See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html for more details. Change-Id: I4a4ca9726fab1d0cf9a33311201b7f65951a0942 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Rename python-openstacksdk to openstacksdkMonty Taylor2018-03-231-2/+2
| | | | | Depends-On: https://review.openstack.org/554662 Change-Id: I6169f9e98418055c7c3ae5bc3b76b1216703cd55
* Fix tox -e venv -- reno new <slug>Matt Riedemann2018-01-271-0/+4
| | | | | | | | | Change I7e8c47dead1e019e8705db3ff7559dd39b1d90d9 broke the ability to create a new release note from the venv tox target because the reno requirement was moved from test-requirements.txt. This fixes it. Change-Id: Ifac83121388728fa445e0ed4433c9d981c057737
* Partially Revert "Update new documentation PTI jobs"Doug Hellmann2018-01-171-2/+1
| | | | | | | | | | | The zuul job figures out whether to run "setup.py build_sphinx" or "build-sphinx" based on whether the project is relying on pbr's ability to auto-generate API reference docs. Because we are relying on that, we want local builds to use "setup.py build_sphinx". This reverts commit 42e0037cd055d81d9452f046c347f8e469d27350. Change-Id: Ia01188110fa9c3ccaf3d794fa3a511a6780e683e
* Update new documentation PTI jobsGuoqiang Ding2017-12-281-2/+12
| | | | | | | | | | For compliance with the Project Testing Interface as described in [1]. For more detailed information, please refer to [2]. [1] https://governance.openstack.org/tc/reference/project-testing-interface.html [2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html Change-Id: I7e8c47dead1e019e8705db3ff7559dd39b1d90d9
* Switch to use stestr directlyMasayuki Igawa2017-12-271-10/+15
| | | | | | | | This commit makes to use stestr instead of ostestr directly. ostestr>1.0.0 has started to use stestr instead of testrepository. So there is no reason to use ostestr anymore. Change-Id: I6327d50c9f6dd19f1de24b9b51532104fb3e916e
* Fix SDK Connection creation alternative to ProfileDean Troyer2017-12-071-1/+1
| | | | | | | | | Do a dummy import to determine which SDK is installed (Pre/post merge). This solves the DevStack error "Cloud defaults was not found" in -tips jobs. Depends-On: Ia111f127fbdceac2afe20fd9d1fe032145cdd72c Change-Id: I60c2d418dd5a393eee2cc2a5c2fdebfffdabf2d3
* Remove -U from pip installAndreas Jaeger2017-12-021-1/+1
| | | | | | | | | | | 'pip install -U' ugrades specified packages, this is not necessary since we use constraints, remove the parameter '-U' from the line. With tools/tox_install.sh - which a previous change of mine removed - the -U was not harmful, but with the current set up, it might cause upgrades, so remove it. Change-Id: I9f818d4b78e7540498a1501be14cd63ac3e891b3
* Avoid tox_install.sh for constraints supportMonty Taylor2017-12-011-11/+5
| | | | | | | | | | | We do not need tox_install.sh, pip can handle constraints itself and install the project correctly. Thus update tox.ini and remove the now obsolete tools/tox_install.sh file. This follows https://review.openstack.org/#/c/508061 to remove tools/tox_install.sh. Change-Id: Ie7c06ead39c8597ec9326f223625d1fa0d5208d1
* Add cliff and keystoneauth to tips jobsMonty Taylor2017-12-011-0/+4
| | | | | | | | | Both of these can severely break openstackclient. Add them to the required-projects list of the tips jobs. We should then add at least osc-tox-unit-tips but maybe also osc-functional-devstack-tips to both cliff and keystoneauth so that it's symmetrical. Change-Id: Ie0f3e9d7e221c9cdd3c5d726148f456246186ff4
* Zuul job updatesDean Troyer2017-10-271-0/+17
| | | | | | | | | | * Add unit-tips job to run unit tests with the same project master branches as the functional-tips job (mostly useful for the unit.integ tests) * Add irrelevant-files to the osc-functional-devstack-base job * Comment out the functional-n-net job as it is horribly broken for now until the replacement package-installed OpenStack is ready Change-Id: I5acdcb0a2f0f0dfe488740ae0add36366cc0ee21
* Native DevStack jobsDean Troyer2017-10-241-8/+8
| | | | | | | Convert legacy DevStack jobs to native Zuul v3 form, plus some test-job-related docs updates. Change-Id: Ia8c08be81605da885b9eee799fc58129305dfc41
* Add wrapper around ostestrMonty Taylor2017-10-231-0/+4
| | | | | | | The functional tests assume that an openrc file has been sourced. Make a simple wrapper that will do that. Change-Id: I42584aaebcbca99a8c922f6ff90c8bbce57bbfbb
* Updates for stestrDean Troyer2017-09-151-0/+3
| | | | Change-Id: I860981f06e31abda3141a0cb4fd13a0d49080b50
* flake8-import-order: Ensure to place project imports lastAkihiro Motoki2017-08-221-0/+1
| | | | | | | | To ensure project imports are placed after third party import, we need to specify application-import-names. Previously flake8-import-check checked only standard imports or not. Change-Id: Iad7afa456cec7cf5b44955f1ea03c593a4c0e426
* Use flake8-import-order pluginAkihiro Motoki2017-08-171-0/+1
| | | | | | | | | | | | | | | | In reviews we usually check import grouping but it is boring. By using flake8-import-order plugin, we can avoid this. It enforces loose checking so it sounds good to use it. This flake8 plugin is already used in tempest. Note that flake8-import-order version is pinned to avoid unexpected breakage of pep8 job. Setup for unit tests of hacking rules is tweaked to disable flake8-import-order checks. This extension assumes an actual file exists and causes hacking rule unit tests. Change-Id: I12b596820727aeeb379bee16c2bc993dee9eb637
* Enable some off-by-default checksblue552017-06-231-0/+2
| | | | | | | Some of the available checks are disabled by default, like: [H203] Use assertIs(Not)None to check for None Change-Id: I59dafb62cedc5217b6e5eb6efb997a9ee3c29bbb
* Remove ipdb installation in tox debug sectionRui Chen2017-04-241-1/+0
| | | | | | | | | | | The lastest ipdb depends on ipython 6.0, but ipython 6.0 only can be installed in python 3.3 and above, see http://paste.openstack.org/show/607632/ . If we try to run "tox -e debug" in python2.7, the install error is raised and block the function. Remove the ipdb installation, it's not necessary, we can use pdb to replace. Change-Id: Ib47bb5925b7a5b1d3a319b58fa219c1b57dccb93
* Update to tox.iniyangweiwei2017-04-071-1/+1
| | | | | | | | | | When do the action "tox -e pep8", result is "ValueError: No closing quotation". Which is caused by the tox.ini. The min tox version is 1.6. In my environment, tox version is 2.2.1. If the tox version is more than 2.3, the error will not happen. Depends-on: Iee7b043ac7d381dadf89d26098f69e935ed81d6b Change-Id: Id10ddf6244e7e25e6f66c97773d426b0b4789479
* Remove py34 tox env and pypi classifierEric Brown2017-03-071-1/+1
| | | | | | | | Currently only py27 and py35 (not py34) is tested in the gate, so py34 should no longer be part of the tox environment or part of the PyPi classifier. Change-Id: I155fc0e3ac06b495718d9fa3058edded738cb011
* Functional tests debug supportRui Chen2017-01-221-1/+4
| | | | | | | | Pass OS_* options into tox debug venv in order to debug functional tests in local, and install ipdb to make code-debug more convenient. Change-Id: Ib926948f2b9a52921cf7487fe16ef716481e3ceb
* Use git+file urls instead of directoriesMonty Taylor2017-01-141-3/+4
| | | | | | | | | | The /opt/stack/new directories are owned by the wrong user, so python setup.py egg_info fails because it can't create the egg_info dir. Changing the invocation to use git+file:// urls solves the problem. Additionally, make a correction to test collection. Change-Id: I39da0b26417dce1a72b15dedc02d10284329307f
* Install from /opt/stack/new instead of git.o.oMonty Taylor2017-01-131-3/+3
| | | | | | | Installing directly from the git url will bypass any depends-on processing zuul may have done on the dependent repos. Change-Id: I3dadacf7a855cc4efad701f0a6275d6cd60efd72
* add support for running tests with master dependenciesSteve Martinelli2017-01-111-0/+9
| | | | | | | | we can create a new infra job that points to the new test hook, which should install the master version of the SDK, osc-lib and os-client-config. Change-Id: Ib6391893b2302bdc514525d5ddda886fe8c60100
* move all functional tests to tests moduleSteve Martinelli2016-09-091-1/+1
| | | | | | | | | | | | | | functional tests should be grouped with other tests (unit and integration tests). as part of this commit the "common" module was renamed to just "base", this was done for simplicity. the post_test_hook.sh file was also copied to the functional module since it should live there. a separate change to the infra repo will be made to call the new location, once that is merged we can remove the old one (a new change will also be posted for that) Needed-By: I49d54f009021d65c1ae49faf6b3f0a7acdadd7b3 Change-Id: Ie8c334f6223373b8e06df8bd8466500d2a2c8ede
* Gate-unbreaking combo reviewDean Troyer2016-08-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | Fix argument precedence hack Working around issues in os-client-config <= 1.18.0 This is ugly because the issues in o-c-c 1.19.1 run even deeper than in 1.18.0, so we're going to use 1.19.0 get_one_cloud() that is known to work for OSC and fix o-c-c with an axe. Remove return values for set commands 'identity provider set' and 'service provider set' were still returning their show-like data, this is a fail for set commands now, don't know how this ever passed before... Constraints are ready to be used for tox.ini Per email[1] from Andreas, we don't need to hack at install_command any longer. [1] http://openstack.markmail.org/thread/a4l7tokbotwqvuoh Co-authorioed-by: Steve Martinelli <s.martinelli@gmail.com> Depends-On: I49313dc7d4f44ec897de7a375f25b7ed864226f1 Change-Id: I426548376fc7d3cdb36501310dafd8c44d22ae30
* Remove an outdated directory in tox.iniHuanxuan Ao2016-08-031-1/+1
| | | | | | | | | The directory openstack/common from the exclude list of flake8 in tox.ini was used to keep codes from oslo-incubator, but oslo-incubator was retired, so don't use this directory any more. Change-Id: If1ea5dc167cfe4a09aad413b9eab0af807ebe603
* Follow upper constraints for all tox targetsSteve Martinelli2016-07-171-1/+6
| | | | | | | | | | With the exception of releasenotes and cover, we should follow upper constraints. The tox_install file was copied over from python-neutronclient [1]. [1] http://git.openstack.org/cgit/openstack/python-neutronclient/tree/tools/tox_install.sh Change-Id: I633fa149820efafd7b2acec0388fa8bc8d06c988
* Add Python3.5 to setup.cfg tox.inizheng yin2016-07-121-1/+1
| | | | | | | Now that there is a passing gate job, we can claim support for Python 3.5 in the classifier. This patch also adds the convenience py35 venv. Change-Id: If93af96739741584c87913ba140d0c6cee2aa10d
* Pep8 environment to run on delta code onlySheel Rana2016-05-121-0/+6
| | | | | | | | | | | Currently tox -epep8 will run flake8 on whole code. To make this fast, flake8 support is added for only updated(delta) code. Same can be run by "tox -efast8". Change-Id: I9c55fed32ae3060c21ec278398e9e07fb4a0fe13 Implements: BP tox-pep8-diff-part-only
* add a bandit environment to toxMichael McCune2016-04-281-2/+31
| | | | | | | | | | | | | | | | | This change is being proposed as part of the OpenStack Security Project working session at the Austin 2016 summit. It adds support for running the bandit[1] security linting tool against the python-openstackclient codebase. This change adds a targetted environment for bandit and also adds bandit as part of the pep8 job. The bandit configuration has been tailored to exclude tests that are currently producing warning against the codebase. These issues will be followed up with bug reports and patches. [1]: https://wiki.openstack.org/wiki/Security/Projects/Bandit Depends-On: Iccd81c17e84df03d249c1012277dad9cb68c5845 Change-Id: I691829c1224557d1d239c9f665ac539d0f13c4d3
* Merge "Defaults are ignored with flake8"Jenkins2016-02-261-0/+3
|\
| * Defaults are ignored with flake8Tom Cocozzello2016-02-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | If “ignore” is not set under flake8 in the tox.ini file there there are defaults set to be ignored. The depended patch fixes many of the problems. Change-Id: Ieed2fe1c4654e201d3fe6d40ef93e247ee736f8b Doc: http://flake8.readthedocs.org/en/latest/config.html#default Depends-On: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d Closes-Bug: #1548910
* | Improve tox to show coverage report on same windowting.wang2016-02-241-1/+3
|/ | | | | | | With this patch coverage report will be shown with the results when tox -e cover will be run. Change-Id: I96713a8dd5d82019631c9e48c1abd7a94e201569
* Deprecated tox -downloadcache option removedOndřej Nový2015-12-111-3/+0
| | | | | | | | | | Caching is enabled by default from pip version 6.0 More info: https://testrun.org/tox/latest/config.html#confval-downloadcache=path https://pip.pypa.io/en/stable/reference/pip_install/#caching Change-Id: I521b7cb11374f0600d1f6d4c6529e95aa29654b0
* Add reno for release notes managementDean Troyer2015-12-021-0/+3
| | | | Change-Id: Iaaf3f9ca7cb431e41adfb2a052e01e2240a63a07
* Remove py26 supportSteve Martinelli2015-11-241-1/+1
| | | | | | | | | | as of mitaka, the infra team won't have the resources available to reasonably test py26, also the oslo team is dropping py26 support from their libraries. sine we rely on oslo for a lot of our work, and depend on infra for our CI, we should drop py26 support too. Change-Id: I66d168ecc755a3ea0e01d5b6344d06d9e0d1378b Closes-Bug: 1519510
* Remove requirements.txt from tox.iniTerryHowe2015-07-171-2/+1
| | | | | | | From lifeless: pbr reflects the package dependencies from requirements.txt into the sdist that tox builds. Change-Id: I63548ec321b9c59cc935ba8179b1da5b9c90e09b
* Drop py33 support for LibertyTerryHowe2015-07-131-1/+1
| | | | | | | Less is more: https://wiki.openstack.org/wiki/Python3 Change-Id: I8a98b72f85bb29a3663c654613ac0d70fddbc1b1
* Use ostestr for test runsMatthew Treinish2015-05-291-2/+2
| | | | | | | | This commit switches to use ostestr for running tests. ostestr integrates the subunit-trace output that other projects use for test output. (in addition to some other ui niceties) Change-Id: Ib5b5225b2a7bfb7897e1efe55181389d1ae095cb
* Fix functional test gateTerryHowe2015-05-151-0/+1
| | | | | | | The functional test gate seems to be broken. The environment variables are not being passed through. Change-Id: Ied1f56877e4793c5e88e59d2afb7f1a5b3868560
* minor syntax error in tox.iniTerryHowe2015-05-011-1/+1
| | | | Change-Id: I476ea8f2cf4370e62b6b6b15d72b97beabe6677e
* Merge "Functional tests run in many environments"Jenkins2015-04-291-1/+1
|\
| * Functional tests run in many environmentsTerryHowe2015-04-251-1/+1
| | | | | | | | | | | | | | | | Have the functional tests running with less customization and less shell. This change will allow the functional tests to be run against any cloud set up in the environment. Change-Id: I24f621fbace62273e5a0be24e7af9078c0fc8550
* | Remove references to venvSteve Martinelli2015-04-241-1/+1
|/ | | | | | | | Stick to using tox, remove the tools directory since it only contained references to using venv. Also update a few other locations that would have otherwise been incorrect. Change-Id: I7d3e9067256ac0935f07904abcf584d898ac1d6f
* Change test order to avoid incompatibliityTerry Howe2015-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If py26 or py27 tests are run first, there is a incompatibility in the .testrepository that breaks several tests. To get around this, you need to run the py33 tests first. This change was made over in the cliff project. Before: (.venv)terry@brat:~/cli$ rm -rf .testrepository/ (.venv)terry@brat:~/cli$ tox ... py26: commands succeeded py27: commands succeeded ERROR: py33: commands failed ERROR: py34: commands failed pep8: commands succeeded After: (.venv)terry@brat:~/cli$ rm -rf .testrepository/ (.venv)terry@brat:~/cli$ tox ... py33: commands succeeded py34: commands succeeded py26: commands succeeded py27: commands succeeded pep8: commands succeeded congratulations :) (.venv)terry@brat:~/cli$ Change-Id: Ie1717efd6827eae36683f2e7fe7ff8ec58ff4aa8
* Remove ignore portion of tox.iniSteve Martinelli2015-01-261-1/+0
| | | | | | | In the latest hacking update a few rules were dropped, and we no longer have to ignore these rules in our tox.ini. Change-Id: Id38a1497019c7fe2d4ad8567f1c0c8d229951751
* Tests work fine with random PYTHONHASHSEEDOleksii Chuprykov2014-11-121-1/+0
| | | | | Change-Id: Iba6fc87bbff289ae2572a7eb132f5c946dfa0956 Related-Bug: #1348818