summaryrefslogtreecommitdiffstats
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* Ignore py:obj warnings and fail on warningsThanh Ha2020-01-221-2/+2
| | | | | | | | * Enables fail on warnings and enable nitpicky * Consolidate string -> str for args Change-Id: Id5c29d48813fd6f772816dc74c7c4e408097113d Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Enable docs-linkcheckThanh Ha2020-01-061-3/+5
| | | | | | | | | This toxenv will allow us to flag URLs that no longer work. We also switch from using old style setup.py build_sphinx to the newer sphinx-build command. Change-Id: I62f42918814fb6eea4876e0d22c6bccddf86a826 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Correct dependencies on tox lintersSorin Sbarnea2019-07-131-1/+3
| | | | | | | Linters only requirement is pre-commit, as the tools takes care of the rest. This speeds up linting and lowers disk footprint by removing unnecessary deps. Change-Id: I82b974a5257671bc2e8e987d0f556ddae345feea
* Fix flake8 failures and make its execution more consistentSorin Sbarnea2018-10-281-5/+16
| | | | | | | | | | | | | | | | - upgrade flake8 to 3.6.0 - remove use of hacking since pre-commit replaced it - mentioned minimal flake8 version on pre-commit config - fixed newer linting errors - disable W504 as it seems not possible to fix (conflict with W403) - replaced buggy tox deps installation with native pip install, which address the issue of missing to install new deps when the reqs files are updated, developer being forced to to recreate the virtualenv. - prepare for migration from tox-pep8 to tox-linters, now these being just aliases. Change-Id: I310578dce215aaf00a5b2d54716f90da9a1ecb4d Depends-On: https://review.openstack.org/#/c/613726/
* adopt pre-commit hooksSorin Sbarnea2018-07-121-8/+2
| | | | | Change-Id: I98bc0b5717c3921b35e74f53c55f896427880a84 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Merge "Revert "fix tox python3 overrides""Zuul2018-06-291-9/+0
|\
| * Revert "fix tox python3 overrides"Thanh Ha2018-06-191-9/+0
| | | | | | | | | | | | | | This reverts commit 51a4ccab70caba694fbf113548cf564139b0c0c8. Change-Id: I52b3ff4699f6907cb481f016fb55fb9102c48b98 Signed-off-by: Thanh Ha <zxiiro@linux.org>
* | Allow jjb to be called as a moduleSorin Sbarnea2018-06-191-0/+2
|/ | | | | | | | | | | | | | Enable us to do `python -m jenkins_jobs ...` which avoids the need to install executable in user path. Tests cli execution on each supported python version. Uses default encoding workaround only on python2, where is needed. Change-Id: I4cd79fd51a8309d532e0e76723ecfbbda3e1ca6f Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* fix tox python3 overridesqingszhao2018-06-191-0/+10
| | | | | | | | | | | | | | We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I78f552cfb434b6bac30a77c5f2011636308fbbee
* Use of OrderedDict allows hash seed != 0Darragh Bailey2018-04-251-2/+0
| | | | | | | | | Before the yaml parser was modified to use OrderedDict test input/output could be incorrectly ordered relative to the expected output. This has long been fixed and we should now be able to remove this setting. Change-Id: I165c3fd4189d2d0d87cc5da565cbba7df236e326
* Replace testr with stestrSorin Sbarnea2018-04-051-5/+9
| | | | | | | Switch to use stestr which is maintained as opposed to testrepository (testr) which became a defunct project. Change-Id: I47f628a7d224189362f2b2cfd9fe4c54af198cde
* Enable cross testing with python-jenkinsSorin Sbarnea2018-04-041-2/+14
| | | | | | | | | | | | | | This allows us to spot things that may be broken by changes made to dependencies. Adds zull job that tests tips of both projects. Adds 'tips' tox environment that can be used by developers to perform the same kind of testing locally. Change-Id: I35dbdf6acab1062109dc4b1f1474decd75932504 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* tox: enable multiple py3x versionsSorin Sbarnea2018-02-231-1/+1
| | | | | | | | | | | | | | Adds multiple py3x versions to the default list in oder to assure that they are used when available. Some systems are already using py36 but other production systems are have only py34, like RHEL 7.x. This should have no effect on gates as they specify exactly their targets, but it does improve developer testing. Change-Id: I6225f1d8cd7cb0022817d8dc1f459403bbd57f8e Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Improve test resiliencySorin Sbarnea2018-01-181-5/+13
| | | | | | | | Avoids occasional test executions failures caused by leftover files on dev machine or by preexisting configuration files. Change-Id: Ia0ba29e2dda58c37410a6926cae3039e4ba3473e
* Update tox.ini to run voting tests by defaultDaniel Watkins2017-10-061-1/+1
| | | | | | | When a developer runs `tox`, they should see the results which will be voting in gerrit. Change-Id: I4964b674a1317f454739ef69505c985dc323f845
* Removed some deprecation warnings and enabled py35 on tox.Sorin Sbarnea2017-03-121-1/+2
| | | | | Change-Id: Icc5b28c4636b542a10502b7b1d2d2dc2028cc166 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Sync requirements with openstack/requirementsMonty Taylor2016-12-101-1/+1
| | | | | | | | | This is not necessary - jenkins-job-builder does not follow the requirements sync process. That said - these are likely all safe bets for being solid versions of these dependencies - and some of them were kinda stale. Change-Id: Id1941ff4c9736100f9bdd5508ec3c0377e51fdbe
* Add comment about proxy env pass throughDarragh Bailey2016-09-151-0/+3
| | | | | | | | | | | | | For users in a proxy environment, checking the doc urls requires being able to pass through the proxy environment variables. Include a simple comment along with the tox command requiring it to help users checking any links added are valid. Add some references to documentation, both in the detailed documentation and the quick README.rst that would be more commonly checked. Change-Id: I2316bc1b7e845c29a8b248eef4668a6099d109f7
* Introduce modular implementation of subcommands.Wayne2016-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit intentionally introduces a number of important API breakages. Specifically, the jenkins_jobs.cmd module has been pared down to some of its most difficult-to-refactor elements. * Create jenkins_jobs.cli.entry.JenkinsJobs class to organize command line parsing and execution. * Remove references to ConfigParser object in test code, hidden as an implementation detail of JenkinsJobs command line parsing. This will be necessary in the next stage of JJB 2.0 code which will be to create a JJBConfig object that handles logic and presentation of configuration from various sources--defaults, command line arguments, configuration file, and maybe environment variables in the future. * Remove references to Namespace object produced by argparse module. Required rewrite of multipath & recursive path tests with a new MatchesDir testtools Matcher class that validates the expected output for a run of JJB against a given set of yamldirs with the specified command line arguments. * Use stevedore to dynamically load subcommand parsers. * Move configuration loading/testing to its own test file. Also fix the global vs home directory JJB config file test. Change-Id: If62280418ba7319c313033ab387af4284237747e
* Allow testing non-default configs with complex definitionsDarragh Bailey2016-05-261-0/+3
| | | | | | | | | | | | | | | | Ensure we can provide multiple configurations to exercise different behaviour within modules with complex job definition inputs. This ensures that behaviour can be put behind config options, while providing a platform to exercise these non-default values with the full complexity of the OpenStack JJB definitions. Since config options may result in different output, success is determined by simply succeeding in executing JJB without error. For additional review, any differences are outputted. Change-Id: Ifd2b48ae85fbe7b5a2858dd426137c735c6ccd02
* Add separate linkcheck env and allow dev to select builderDarragh Bailey2016-01-111-1/+4
| | | | | | | | | | | | | | | | | | | | Add separate linkcheck tox environment to be used in non-voting Jenkins job to watch for stale and broken links in the sphinx generated html documentation. Include a small addition to make it easier for contributors to select individual builders when executing the docs tox environment. Add minimum dependency of pbr 1.0.0, as that was the first version to allow passing of sphinx builders on the command line to override the internal defaults or those set in the configuration file. This will make it easier to spot problems with just the links, and also ensure that when the sphinx project releases with proper warniserror fix for the linkcheck builder, that html and man page documentation can continue to be built even if a previous valid link has become stale or is temporarily unreachable. Change-Id: I80446abe96824a444a04cc526df6cc38632a4607
* 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: If7209ed58d312bba35332e81a1943f55a286beed
* Merge "Stop specifying requirements.txt in tox.ini"Jenkins2015-09-081-4/+1
|\
| * Stop specifying requirements.txt in tox.iniKhai Do2015-08-101-4/+1
| | | | | | | | | | | | | | | | As PBR already injects the contents of requirements.txt into setup_requires, there is no need for tox to explicitly install them. http://lists.openstack.org/pipermail/openstack-dev/2015-July/069663.html Change-Id: I2f58dafdc2e4234e87c03c73a3c6c88ef659b564
* | Update tox with supported python versionsDarragh Bailey2015-08-251-1/+1
|/ | | | Change-Id: I2fc3d5a47a4d8e0bf8475475043e21cd3c4398b5
* Exclude .test directory from pep8 checkDarragh Bailey2015-07-071-1/+1
| | | | | | | | Exclude the .test directory, created by running the comparison of changes to the XML outputted caused by the current revision, from the pep8 checks. Change-Id: I07d06819e0db29efb27bf0f7e4de05bef5bc3a7e
* Test with LANG set to UTF-8Clark Boylan2015-05-201-0/+1
| | | | | | | | | | Tox 2.0 does not pass the environment from the caller through anymore. THis means your locale LANG setting is not set which makes the utf8 tests unhappy in JJB. Correct this by explicitly setting a LANG of en_US.UTF-8. The important bit is the UTF-8 specification, en_US was chosen somewhat arbitrarily. Change-Id: I0fc5b5ab80414b392b7cebe9b4e0ebc5cc42c61c
* Rename doc environment to docsMonty Taylor2014-09-081-1/+1
| | | | | | | | As per the governance resolution https://review.openstack.org/119875, projects should have a docs environment in their tox.ini testing interface. Rename the doc environment to docs. Change-Id: I1ad04bd2c3a0404a2ee6d809154c72bc896d0c36
* Work around PYTHONHASHSEED-related problemsKevin L. Mitchell2014-08-221-3/+5
| | | | | | | | | | | The JJB unit tests no longer pass, due to an upgraded version of tox which sets PYTHONHASHSEED to random values. Since the ordering problem introduced is a difficult one to smash, this just sets PYTHONHASHSEED to 0. This also fixes the syntax of the "[testenv]setenv" configuration setting. Change-Id: I61fdbdf1a5099bcbacaeba59ff5001bb23df8cfd Related-Bug: #1348818
* Add tox "coverage" targetMarc Abramowitz2014-05-271-0/+7
| | | | Change-Id: I577d62e016a550ea30671837a0a426165984e982
* Add hacking to requirementsJames E. Blair2014-04-161-3/+9
| | | | | | | Solely for the transitive dependencies. Ignore errors from hacking as do the other openstack-infra python projects. Change-Id: Ib5953c31a5380f9f57c7f79e1ce0699aef5eb629
* Migrate to pbrAntoine Musso2014-03-141-2/+3
| | | | | | | | | | | | | | | | I found out pbr to be a bit nicer when it comes to edit files. AFAIK most OpenStack project are using it, so I guess Jenkins Job Builder can be pbr based as well.o Basically: * moved everything from setup.py to setup.cfg * sorted entries while at it * require pbr module using the same version limits used by Zuul * enable pbr.warnerrors * testenv.usedevelop = True or build_sphinx can not find entry points * move requirement files to root of repository (we had them in /tools/) Change-Id: I44ee8910ad4fe4eebb7337951efa31baff4281fe
* Use venv to build documentationAntoine Musso2014-03-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | The Sphinx documentation now make use of the `program-output` plugin which would invoke commands to generate inline documentation. Ex: program-output:: zuul --help program-output:: zuul enqueue --help We want the resulting output to correspond to Zuul source code, not the command which is currently installed on the host running the doc. On my setup sphinx would die out because it cant find the command 'zuul'. The new tox environement 'doc' runs sphinx in a virtual env which will have the proper zuul command. The generated doc is not written under the /.tox directory but to /doc/build/html for convenience. Example usage: tox -edoc && open doc/build/html/index.html Change-Id: Ib0170f94bb2c09eb60e555a32e101e2e0959b18e
* Make sure tox does not call pip install with --preJeremy Stanley2013-09-181-0/+2
| | | | | | | | | | | | | * tox.ini: By default tox passes --pre to pip install commands so that prerelease packages will be deemed automatically suitable, as a means of keeping backwards-compatible with earlier pip releases which did not interpret version strings looking for potential prerelease patterns. By overriding the install_command in tox 1.6 and later, this option can be removed from the pip command line so that prerelease versions of packages will only be installed if a version spec for a particular package is also a prerelease. Change-Id: I978b906b0ecd6c01c99e08f9d27271a1f31c7a14
* Add python26 supportPaul Belanger2013-07-191-1/+1
| | | | | Change-Id: I1e4b388135ce73f34ba594943c4ae7e5f2dadeba Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
* Tests for publishersAntoine Musso2013-07-191-3/+7
| | | | | | | | | | | | | | | | | I am trying to build up a very basic testing framework so we can tests our publishers. The idea is to provide a YAML input file and expected XML output, run the parser on the YAML file and compares its output with the fixture XML. That test suite should speed up development of new publishers. TestCaseModulePublisher is declared inside a function so that unittest discovery does not consider it a usable test directly. load_test is responsible for instantiating the test suite. Change-Id: If3260113eb1337ac47c3883b11c600e5a595dae3 [fabre.arnaud@gmail.com: fixed some runtime errors] Signed-off-by: Arnaud Fabre <fabre.arnaud@gmail.com>
* Bump pep8 to 1.3.3Paul Belanger2012-11-231-2/+2
| | | | | | | | | | | | | | However due to an upstream bug[1] we ignore E125 for now. [1] https://github.com/jcrocholl/pep8/issues/126 Change-Id: I75337d9194156580cc66666aed9a5bc2fd5d4e15 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-on: https://review.openstack.org/16604 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
* Update tox to exclude *egg for pep8Paul Belanger2012-11-201-1/+1
| | | | | | | | | | | | I'm looking at you setuptool-git Change-Id: I0b40bc2d902b056085567b7ac740fefd9f5950f0 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-on: https://review.openstack.org/16545 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
* Use console_scripts entrypoint.Monty Taylor2012-11-191-3/+3
| | | | | | | | | | | | Since the project uses entrypoints so heavily - move the jenkins-jobs script to be contained within the project and have entrypoints generate the script. Change-Id: Ie9541163c8677de1b05576491c8e9e63d3bd25fc Reviewed-on: https://review.openstack.org/15816 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
* Add documentation.James E. Blair2012-09-171-2/+4
| | | | | | | | | | | | | | | | Move test.sh to the tools directory. Move parameters and notifications to their own modules; even though they are implemented as Jenkins properties, they make more sense as separate entities in the job builder, because that's they way they are specified in the YAML. All three modules that touch the properties xml object know how to create it if it's missing. Change-Id: I4b42ff10a93fd3ed98f632b58e47f3e0e45086d6 Reviewed-on: https://review.openstack.org/12741 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Simplify the xml test paths.James E. Blair2012-09-051-2/+2
| | | | | | | | | | | Make it easier to invoke the tox environments from another project (eg, openstack-ci-puppet). Change-Id: I88305c8edb79bb6e944eb35f5e39c84827807f11 Reviewed-on: https://review.openstack.org/12451 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Add test to determine whether XML output has changed.James E. Blair2012-09-011-0/+8
| | | | | | | | Change-Id: I5e0b76e195a1b412d180484ce1ddd3e9159d7779 Reviewed-on: https://review.openstack.org/12286 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
* Add tox.ini and pep8, pyflakes cleanup.James E. Blair2012-08-151-0/+16
Change-Id: I4d6312e92dffd596ae58e55c837e3db3ea7d1c52 Reviewed-on: https://review.openstack.org/11198 Reviewed-by: Monty Taylor <mordred@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins