Commit Graph

14 Commits

Author SHA1 Message Date
Dirk Müller 52c8d40b53
Switch to tox 4.0 compatible listing
Change-Id: If711306c9ace25fabb42dcbb002ee9c1a36adaf8
2023-01-04 14:44:36 +01:00
zhangboye a162e98fa9 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Id58ed046a7cdb1b09b3f561c15cdee99d756cb82
2022-06-16 09:06:33 +00:00
pengyuesheng 20bf8c3558 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I12796b7e9f86b78da5041014030b2caa27e80220
2019-09-25 14:39:54 +08:00
hutianhao b3651b9858 Update to opendev
Change-Id: I19a50033f41dd9b043ae37afb1c47c667df12c21
2019-05-01 02:39:53 +00:00
Thomas Bechtold ccdae17907 Allow lint runs for a single spec
Currently, a "tox -e lint" run takes a lot of time. But when
developing locally and changing a single spec template, this is
annoying.
So allow a second positional argument for the 3 tools from the tools/
directory which is a string used by the "-name" argument from
"find". With that, it is possible to call lint for a single spec
template with eg:

tox -elint python-cliff

Change-Id: I1ba05ed4e353728d251105fc7ad356d759813481
2019-04-10 13:36:09 +02:00
Sumit Jamgade e901aee2f1 Use python3 as python for envs as spec_cleaner dropped python2
https://github.com/openSUSE/spec-cleaner/issues/234

Change-Id: I5a901ade60949af2c5246ce1ae1877d7feb37b4d
2018-07-02 15:30:23 +02:00
Dirk Mueller 8a6a32e1f1 Add zuul.yaml for zuulv3
This converts the tox-lint job to zuulv3. There is a standard
openstack-tox-linters that we can rely on.

Change-Id: I31eb188d9bde1fa0db5a46b3fa8b412f729d939e
2017-09-29 13:21:00 +02:00
linbing a05cfab4f2 Force LC_ALL=en_US in test runs
Change-Id: Ifd464922e123d4ceb6f787b8169cf99bb65242fc
2017-03-02 23:35:12 +01:00
Dirk Mueller 3a44e3df35 Add Constraints support
This avoids random breakage from new releases that have not passed
global requirements integration testing

Change-Id: Ibafde948c93ac5daa943b574debd4dc7eadef2cd
2017-03-01 22:35:52 +01:00
Dirk Mueller d58f4b10f8 Some small shell script check for common review violations
This should probably be a lot more advanced, but for now
this finds the problem that I introduce all the time :)

Depends-on: I87a9de05f15b3dd1f3d5fb9c6b77c09d265b28ad
Change-Id: I9c1815a077c2fd918a35b44081bccdd1ccd8afc2
2016-10-13 15:59:23 +02:00
Thomas Bechtold b47b634de5 Introduce spec-cleaner to enforce spec styling
A new test-requirement called spec_cleaner is run on the
rendered spec files to check the style of a given spec.
This enforces a consistent style between spec files.
Also fix the currently available spec files to have a consistent
style.

Change-Id: I31957cc986e320798d5d6212e4d37fdf89b13b3d
2016-06-24 02:06:21 +02:00
Ondřej Nový d48348b64c Deprecated tox -downloadcache option removed
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: Ieb5b735f1ed72b5baf3e942917966c2b20c9af2a
2015-12-11 23:33:17 +01:00
Dirk Mueller c12a881e87 Rename tox environment to lint to match the infra change
See https://review.openstack.org/#/c/254205/ for the related
project-config change.

Change-Id: If45da4bedae2c0ba2007b93813fc67657242c9b7
2015-12-09 09:33:57 +01:00
Thomas Bechtold bf55ef3508 Add basic renderspec test integration
Use renderspec to render the jinja2 templates into real RPM spec
files. Abort if the conversion doesn't work.

Change-Id: I31edbe16129a627236db0c980602ca23a0ba2a4a
2015-10-30 14:23:57 +09:00