Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding flexibility to how run_unit_tests determines what to run. #2475

Merged
merged 3 commits into from
Oct 3, 2016

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Sep 30, 2016

  • Upgrading the get_tox_env() helper to support the TOXENV env. var. and the current system Python
  • Ditching tox on Travis for py27, py34 and isolated-cover, this is because those tox environments just farm out the work to tox environments for each sub-package, so it isn't worth waiting for the extra tox env. setup time
  • Changing back from --tox-env-dir to --tox-env flag in run_unit_tests.py script (it could always go back but isn't needed. Also could use the VIRTUAL_ENV env. var. set by the activate script from the virtualenv tool)
  • Adding py27,py34,py35 back to the tox env. list
  • Letting tox -e py27, etc. allow the current Python to determine their tox env. value
  • Allowing a subset of packages to be passed to run_unit_tests from the command line
  • Some misc. CONTRIBUTING doc changes (see 2nd commit)

NOTE: Has #2473 as diffbase.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 30, 2016
- (cd speech && tox -e py34)
- python2.7 scripts/run_unit_tests.py
- python3.4 scripts/run_unit_tests.py
- python3.5 scripts/run_unit_tests.py

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

- Upgrading the `get_tox_env()` helper to support the `TOXENV`
  env. var. and the current system Python
- Ditching tox on Travis for py27, py34 and isolated-cover, this
  is because those tox environments just farm out the work to
  tox environments for each subpackage, so it isn't worth
  waiting for the extra tox env. setup time
- Changing back from --tox-env-dir to --tox-env flag in
  run_unit_tests.py script
- Adding py27,py34,py35 back to the `tox` env. list
- Letting tox -e py27, etc. allow the current Python to determine
  their tox env. value
Also

- Adding instruction to `CONTRIBUTING` about how to run
  a subset of tests for packages of your choosing
- Moving the "Adding Features" section to the top of the
  `CONTRIBUTING` doc
- Making tiny edits to `CONTRIBUTING` doc, e.g. using
  a "repo" hyperlink for the repository and updating the
  link to the `tox` docs
@dhermes
Copy link
Contributor Author

dhermes commented Oct 3, 2016

@tseaver @daspecster PTAL

@daspecster
Copy link
Contributor

Could we rebase this since #2473 was merged?

@dhermes
Copy link
Contributor Author

dhermes commented Oct 3, 2016

Could we rebase this since #2473 was merged?

It's been rebased 😉

@dhermes dhermes merged commit 8fcf9ef into googleapis:master Oct 3, 2016
@dhermes dhermes deleted the collapse-travis-config-2 branch October 3, 2016 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants