jconway / plr

PL/R - R Procedural Language for PostgreSQL
http://www.joeconway.com
90 stars 41 forks source link

travis-ci build and test workflow #16

Open jangorecki opened 8 years ago

jangorecki commented 8 years ago

Would be nice to have travis-ci build and test workflow, or at least the build part. User would have a live deploy documentation.

davecramer commented 8 years ago

Anyone willing to create a .travis.yml file ?

jangorecki commented 8 years ago

optionally the .gitlab-ci.yml may be easier and more flexible (using gitlab.com as CI) as it allows to use any docker image, so all dependencies can be included in docker, and CI can just perform the build.

davecramer commented 8 years ago

I'm not familiar with gitlab.com as the CI, can it be wired into github ?

ISTR that github does support docker images

Dave Cramer

On 9 March 2016 at 08:57, Jan Gorecki notifications@github.com wrote:

optionally the .gitlab-ci.yml may be easier and more flexible (using gitlab.com as CI) as it allows to use any docker image, so all dependencies can be included in d ocker, and CI can just perform the build.

— Reply to this email directly or view it on GitHub https://github.com/jconway/plr/issues/16#issuecomment-194307313.

jangorecki commented 8 years ago

Can be wired by git push to gitlab.com. AFAIK docker images can be used in travis only to be consumed as services, not as the base for your CI. According to https://docs.travis-ci.com/user/ci-environment/ it seems you are strictly limited to Ubuntu 12.04! (unless you use their beta) or OS X Mavericks It also limits you to the travis machines, while gitlab allows to plug own machines as runners, or if needed run CI offline locally.

davecramer commented 8 years ago

OK, but we can't wire gitlab into github... to build on every PR?

Dave Cramer

On 9 March 2016 at 09:02, Jan Gorecki notifications@github.com wrote:

AFAIK docker images can be used in travis only to consume services, not as the base for CI. According to https://docs.travis-ci.com/user/ci-environment/ it seems you are strictly limited to Ubuntu 12.04! (unless you use their beta) or OS X Mavericks

— Reply to this email directly or view it on GitHub https://github.com/jconway/plr/issues/16#issuecomment-194308687.

jangorecki commented 8 years ago

I'm sure we can, using multi-remote on push, or using webhooks, or using push from travis. The purpose of this issue was to produce live up-to-date documentation of deploy. So gitlab CI would surely fulfil that.

davecramer commented 8 years ago

So why do we need docker ?

We should be able to build pl/r on travis-ci

Dave Cramer

On 9 March 2016 at 09:15, Jan Gorecki notifications@github.com wrote:

I'm pretty much sure we can, using multi-remote on push or using webhooks.

— Reply to this email directly or view it on GitHub https://github.com/jconway/plr/issues/16#issuecomment-194312093.

jangorecki commented 8 years ago

To re-use the dependency included in the image and it's maintenance. You can do own images for anything but often it is desired to have maintenance of dependency.