ericmandel / pyds9

Python connection to SAOimage DS9 via XPA
76 stars 41 forks source link

Set up continuous integration #15

Closed cdeil closed 6 years ago

cdeil commented 9 years ago

Triggered by some discussions in #14, I'd like to suggest to set up continuous integration.

Probably best to start with Linux on travis-ci. Mac OS X testing on travis-ci and Windows testing on Appveyor can come later.

One possibility is to copy over the CI setup files from Astropy: https://github.com/astropy/astropy or of course one can start a .travis.yml file from scratch.

This can start small and simple ... just check that python setup.py install and import pyds9 works on Python 2 and 3. Adding and executing tests can then come in later PRs.

@ericmandel I think you have to head over to https://travis-ci.org/ and activate testing for this repo first. Then I can try adding the test setup files here.

montefra commented 7 years ago

@ericmandel : I enabled Travis CI on my copy of pyds9. In the next days I'll work on it. This way we can at least test the installation and import on Linux and MacOSX under various settings.

Once I'm done there I'll need you to enable Travis here.

ericmandel commented 7 years ago

@montefra That's a good idea ... instructions for turning it on will be welcome when the time comes ...

montefra commented 7 years ago

@ericmandel : I have explore travis-ci and played with it. There are a couple of failures I don't understand yet, but I would like to enable it. To enable travis-ci it's enough to do the following (I think you already enabled it for pyjs9 a year ago):

Once is up and running, I'll do a PR and let's see how it goes.

ericmandel commented 7 years ago

@montefra Done. I'll be interested in hearing what tests you add to the automatic checking. We probably should add something similar to pyjs9, although it has a much simpler build.

montefra commented 7 years ago

@ericmandel : Thank you. Right now there is still no test. I just make sure that pyds9 builds and can be imported. I'll add tests later on. I first need to make installation and import work in windows. I'll use appveyor to do it.

ericmandel commented 7 years ago

@montefra yes, I'm sure it will be beneficial to have the builds checked automatically. Other tests might be less useful. I tried writing meaningful tests for js9 using selenium-webdriver and it took a lot of time, relative to the overall value.

montefra commented 6 years ago

travis-ci and appveyor are setup and used