Configure tests on Travis and AppVeyor #14
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in pybind/cmake_example#4, this adds
.travis.yml
and.appveyor.yml
configurations to test the build usingpip
andconda
.You'll need to activate the two services for this repository. These are just the config files.
For a sample of the test output, see the logs from my fork:
https://travis-ci.org/dean0x7d/python_example
https://ci.appveyor.com/project/dean0x7d/python-example
It tests a large number of configurations:
pip
andconda
, 2.7 and 3.5, Linux, OS X and Windows x86/x64. This has revealed a few issues. I fixed each one in a separate commit for clarity. Let me know if there is a better solution for any of those, I'm not that familiar withconda-build
so I may have worked around something obvious.The only issue I wasn't able to resolve is Conda 2.7-x86 on Windows. I have no idea why it doesn't build and I can't reproduce the issue on my local VM. For now, I've placed this particular configuration under
allow_failures
on AppVeyor.One last thing: the conda tests are configured to fetch
pybind11
from theconda-forge
channel. I originally used thepybind
channel, but this resulted in a crash with Conda 2.7 on Linux and OS X. I have no idea why that was,conda-build
would either crash or loop endlessly. In any case, switching to theconda-forge
version resolved it.