Yalir / sfeMovie

sfeMovie is a simple C++ library that lets you play movies in SFML based applications. It relies on FFmpeg to read medias and remains consistent with SFML's naming conventions.
http://sfemovie.yalir.org/
GNU Lesser General Public License v2.1
114 stars 37 forks source link

Add Continuous Integration Building/Testing #32

Closed firefly2442 closed 10 years ago

firefly2442 commented 11 years ago

Any thought about using something like Travis CI for building/testing? I've never used it but it might be fun to setup and try. I looked a little into how the dependencies would work and it looks like we could either manually build FFmpeg as part of it with the new CMake directed build system, or, use Linux debian packages as provided through apt-get to install FFmpeg and the requisite packages.

http://about.travis-ci.org/docs/user/build-configuration/#Installing-Packages-Using-apt

Thoughts?

Ceylo commented 11 years ago

Yup, from what I saw, it does support C++ on Linux and OS X. Too bad they don't support Windows. That would allow us to focus on features only and not rebooting under Windows to check everything works fine and to produce the release.

Actually if sfeMovie releases could all be produced by a building/testing service like Travis that'd be great!

firefly2442 commented 11 years ago

I looked into this a little more and I think it would be possible for testing. We could compile against Debian/Ubuntu packages for the FFmpeg libraries, however, SFML is still at version 1.6 in the repositories. Until that's updated (or we find a PPA for 2.0), I'm not sure how helpful it will be linking against the old version.

firefly2442 commented 11 years ago

Or, an alternative would be adding some sort of testing script that would download and compile SFML from source.

Ceylo commented 11 years ago

Travis-CI is setup and working fine on Linux :) See https://travis-ci.org/Yalir/sfeMovie/builds

firefly2442 commented 11 years ago

Wow, sweet!

Ceylo commented 11 years ago

At the moment I'm still looking for a way to save the built library so that it would be immediately available to users for download. But I don't know if Travis can do that.

I also saw that they have an OS X environment so it could be used for the OS X builds too. But I don't know how to tell it to use the OS X environment (plus the Linux environment seems to be 64 bits only).

Ceylo commented 10 years ago

sfeMovie now has it's own build server for every supported platform. It relies on Jenkins which produces downloadable binaries for each configuration. Tests aren't run though, because they rely on the host having a working sound and video system, which is not the case with the servers being used.

Ceylo commented 10 years ago

Latest binaries for all supported platforms are now available directly on the website. See http://sfemovie.yalir.org/latest/downloads.php