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

platform example #449

Closed
sashkab opened this issue Feb 4, 2017 · 1 comment
Closed

platform example #449

sashkab opened this issue Feb 4, 2017 · 1 comment

Comments

@sashkab
Copy link

@sashkab sashkab commented Feb 4, 2017

Hi,

I've spent better part of the day to successfully combine three tox.ini's for different platforms from pre-tox 2.0 day into single multi-platform (macOS, Linux and FreeBSD) tox.ini. I created test project, which might be useful to share in examples, in order to better document platform keyword, as documentation is very sparse and few things I came up in example were just try and fail.

I've got test repository at https://github.com/sashkab/ttt/, and here is content of the tox.ini:

[tox]
minversion = 2.4.0
envlist=py{27,36}-{linux,macos,freebsd}

[testenv]
platform=
       macos: darwin
       linux: linux
       freebsd: freebsd10

deps=
    freebsd: py==1.4.30
    linux,macos: py==1.4.32

whitelist_externals = echo

commands=
   linux,macos: echo "Hello, Posix"
   freebsd: echo "Hello, FreeBSD"

I'd add this to documentation myself, but I don't have much time now, and afraid will forget about this soon, but this might help someone save couple minutes or hours in the future.

Thanks.

@obestwalter
Copy link
Member

@obestwalter obestwalter commented Feb 4, 2017

@sashkab Thank you. I agree - the documentation definitely needs some TLC at some point. if you dont' get around to it right away, it's at least not lost and properly labelld already.

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants