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

Test multiple Python versions using Travis-CI and Conda #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OriHoch
Copy link

@OriHoch OriHoch commented Oct 23, 2018

  1. added .travis.yml for testing multiple python versions using Travis-CI and Conda - https://travis-ci.org/OriHoch/singer-python/builds/444822592
  2. minor changes to check_prereqs to support running using Conda environment which is slightly different then virtualenv

@timvisher
Copy link
Contributor

timvisher commented Oct 23, 2018

I'm not opposed to the idea of testing against multiple versions of python but we need to do it within circle rather than Travis. All of our existing CI infrastructure is hosted there.

Could you port this to circle?

At the very least it will need to be tested against python 3.5.2 as that's the primary version used to run taps and targets. The main way I know how to do that is actually to run an ubuntu 16.04 image like so but there may be a better way.

I'm a little leery of the use of miniconda as that's not part of our standard tooling. Is there a reason we're using that?

@OriHoch
Copy link
Author

OriHoch commented Oct 24, 2018

Hi, I'm just used to working with Travis, don't think I'll have time soon to port to Circle

Travis is free for open source projects, so if you merge it and enable travis it will work alongside Circle and give another indication regarding compatibility with Python versions (which is what I needed to integrate with Singer..)

Python 3.5.2 is included in the travis tests, you can see here - https://travis-ci.org/OriHoch/singer-python/builds/444822592 and you can easily add any Python version (supported by conda) to the .travis.yml

Conda is very useful for testing because it provides a "clean" Python environment, separated from system dependencies and libraries, as opposed to virtualenv which only separates Python dependencies. It also makes it easier to test multiple Python versions and ensure compatibility with Windows / Mac.

@OriHoch
Copy link
Author

OriHoch commented Oct 24, 2018

BTW, the Makefile ensure Python version is 3.4.3, maybe need to change it to 3.5.2?

@timvisher
Copy link
Contributor

Thanks for the info! If we have any time maybe we'll be able to port it to circle then since we have more expertise with that tech.

Hopefully someone familiar with both can come along and finish it up. It would be very useful to have testing across all those versions.

@timvisher
Copy link
Contributor

Also, regarding 3.5.2, you're right of course and that has been done in this PR. #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants