SINTEF / Splipy

Spline modelling made easy.
GNU General Public License v3.0
100 stars 18 forks source link

Add travis configuration #115

Closed TheBB closed 4 years ago

TheBB commented 4 years ago

@VikingScientist figured you'd like this. :-P

This runs tests on Travis for three operating systems and four Python versions. Massive thanks to Miniconda without which this would have been really tricky.

Note: this PR includes #109 which enables the cython module.

I was unable to get OpenCV to work properly on Windows so those tests don't run there.

Sample build: https://travis-ci.org/TheBB/Splipy/builds/652992226

I'll use cibuildwheel to build wheels for pypi as well. Then this should be ready.

TheBB commented 4 years ago

This is ready now. I created a package called 'Splipy-TestPackage' to test the deployment. See here.

To enable upload to PyPi you have to go into Travis settings and add a TWINE_PASSWORD environment variable. Set it equal to an API token for PyPi that has access to upload packages to Splipy. Since I have access to both these places I've already done this.

To make a new release, all you should need to do is to tag a version on github. However it's the version number in the setup.py file that matters for PyPi!

Let me know if you have questions.

TheBB commented 4 years ago

Figured out why github is not notified about the build. Apparently Travis doesn't have access to sintefmath.

Screenshot from 2020-02-21 12-34-58

I made a request for it so maybe someone is listening on the other end?

Note this doesn't seem to affect the actual builds. They still run. It's just that the results aren't being displayed here on github.

VikingScientist commented 4 years ago

Access granted

TheBB commented 4 years ago

Ah beautiful. Thanks. Now you can see the test status on github.