unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Toon Claes <toon@iotcl.com>
To: phillip.lord@russet.org.uk (Phillip Lord)
Cc: emacs-devel@gnu.org
Subject: Re: Continuous integration
Date: Tue, 4 Apr 2017 22:19:37 +0200 (CEST)	[thread overview]
Message-ID: <m237doorhk.fsf@iotcl.com> (raw)
In-Reply-To: <878tnnm6yq.fsf@russet.org.uk> (Phillip Lord's message of "Thu, 30 Mar 2017 10:47:41 +0100")

phillip.lord@russet.org.uk (Phillip Lord) writes:

> I have the buildbot installation up now. Slightly harder work than I
> hoped, but not too bad.
>
> http://emacs.bioswarm.net:8010

Cool!

Meanwhile, I also have set up CI using GitLab.com.

The project is over here, and is being mirrored from Savannah:

https://gitlab.com/emacs-ci/emacs

To set this up, I had to add a .gitlab-ci.yml file to the root of the
project, with the following content:

#+BEGIN_SRC yaml
image: debian:unstable

before_script:
  - apt update -qq
  - apt install -y -qq build-essential autoconf automake pkg-config libtool m4 autoconf-archive gtk-doc-tools libxml2-utils gobject-introspection libgirepository1.0-dev libglib2.0-dev libjson-glib-dev libncurses-dev

stages:
  - test

test:
  stage: test
  script:
    - ./autogen.sh
    - ./configure --without-makeinfo --with-gnutls=no
    - make check
#+END_SRC

This file probably can be improved in many ways, but I got a successful
build. You can visit the build log here:

https://gitlab.com/emacs-ci/emacs/builds/13595493

If someone with write access would agree to commit the .gitlab-ci.yml
file, the daily mirroring will pick up commits, and GitLab will build
them automatically.

If anybody would like direct write access to the GitLab.com repository,
please click the "Request Access" button on the project page (see link
above).

> Currently, it's running a single build (full build from clean, through
> to tests). It will build any branch (following a change). The build
> takes about 60 mins (or 30 mins with parallel builds). In practice, I'd
> probably add a "incremental recompile and test" job which would be much
> quicker. The builds are running on the master which is probably not
> ideal.

That's great work Phil! I still have to figure out everything it does,
but it seems to be very comprehensive.

The set up at GitLab.com is doing quite the same at the moment. Doing
incremental recompilation would be quite hard on GitLab, because each
build is done in a clean Docker container, so you'll have to export
artifacts and reuse them each time.

GitLab has a feature called pipelines, which allows you to chain builds
together in stages. So this could be an example pipeline:

test --> build some GNU/Linux distro
     \
      -> build macOS
     \
      -> build Windows

The build stages won't be executed if the test stage failed.
If I understand it correctly, buildbot does something similar?
At the moment I only have configured 1 stage on GitLab, because only 1
was needed at the moment. The build stages shown in the flowchart above
can be added in a later stage to make regular builds for different
platforms automatically.

At first sight, also the concept of Workers on buildbot (called Runners
on GitLab) are quite similar.

What I do not yet understand is what the Builders are, and what the
difference is between full and quick?


-- Toon



  parent reply	other threads:[~2017-04-04 20:19 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21 15:45 Continuous integration Andreas Politz
2017-03-21 16:11 ` Phillip Lord
2017-03-21 19:46   ` Michael Albinus
2017-03-21 20:40     ` Phillip Lord
2017-03-22  7:00       ` Michael Albinus
2017-03-22  8:46 ` Toon Claes
2017-03-22 12:16   ` Thien-Thi Nguyen
2017-03-22 16:42     ` Richard Stallman
2017-03-31 13:19       ` Thien-Thi Nguyen
2017-04-02 19:48         ` Richard Stallman
2017-05-23 20:07           ` Toon Claes
2017-03-31 13:20       ` Thien-Thi Nguyen
2017-03-22 13:14   ` Ted Zlatanov
2017-03-22 14:19     ` Alex
2017-03-22 15:38       ` Toon Claes
2017-03-22 15:17     ` Thien-Thi Nguyen
2017-03-31 17:30       ` John Wiegley
2017-03-31 18:24         ` Stefan Monnier
2017-04-02  1:44           ` Mike Gerwitz
2017-04-01 23:31         ` Richard Stallman
2017-03-22 15:36     ` Toon Claes
2017-03-22 18:51       ` Phillip Lord
2017-03-22 15:41     ` Eli Zaretskii
2017-03-22 15:59       ` Toon Claes
2017-03-22 18:49     ` Phillip Lord
2017-03-23  0:17       ` raman
2017-03-23 14:22         ` Phillip Lord
2017-03-23 17:11           ` T.V Raman
2017-03-23 17:55             ` Phillip Lord
2017-03-23 21:29               ` Toon Claes
2017-03-23 22:05                 ` Chad Brown
2017-03-24  5:15                   ` Yuri Khan
2017-03-24 10:37                   ` Phillip Lord
2017-03-24 15:22                     ` raman
2017-03-24 16:31                     ` Ted Zlatanov
2017-03-24 18:07                       ` Phillip Lord
2017-03-24 18:37                         ` Stefan Monnier
2017-03-24 19:09                           ` Eli Zaretskii
2017-03-27 10:30                           ` Phillip Lord
2017-03-24 18:59                         ` Eli Zaretskii
2017-03-24 21:35                           ` Phillip Lord
2017-03-25  6:37                             ` Eli Zaretskii
2017-03-24 21:46                           ` Ted Zlatanov
2017-03-27 10:49                             ` Phillip Lord
2017-03-27  9:54                         ` Toon Claes
2017-03-27 13:32                           ` Ted Zlatanov
2017-03-30  9:47                           ` Phillip Lord
2017-03-30 14:47                             ` Lars Brinkhoff
2017-03-30 17:42                               ` Phillip Lord
2017-04-04 20:19                             ` Toon Claes [this message]
2017-04-06 13:30                               ` Ted Zlatanov
2017-04-06 14:23                                 ` Toon Claes
2017-04-07 16:06                                 ` Richard Stallman
2017-04-09 12:25                                   ` Lars Brinkhoff
2017-04-09 16:35                                     ` Glenn Morris
2017-04-09 18:01                                       ` Lars Brinkhoff
2017-05-31 18:26                                         ` Ted Zlatanov
2017-05-31 19:25                                           ` John Wiegley
2017-06-01 12:59                                             ` Phillip Lord
2017-07-14 20:08                                             ` Ted Zlatanov
2017-07-16 21:36                                               ` Dmitry Gutov
2017-07-17 14:43                                                 ` Ted Zlatanov
2017-07-17 14:36                                               ` request for votes for continuous integration system Ted Zlatanov
2017-08-11 17:36                                                 ` John Wiegley
2017-08-11 19:38                                                   ` Ted Zlatanov
2017-08-11 21:41                                                     ` Nicolas Petton
2017-08-11 23:08                                                       ` Ted Zlatanov
2017-08-11 23:49                                                     ` John Wiegley
2017-12-09 23:59                                                       ` Ted Zlatanov
2017-12-19 19:52                                                         ` Ian Kelling
2017-08-13  7:13                                                     ` Toon Claes
2017-08-13  7:18                                                       ` Paul Eggert
2017-08-14  2:22                                                         ` Ted Zlatanov
2017-08-18 15:06                                                     ` Richard Stallman
2017-08-18 15:35                                                       ` Ted Zlatanov
2017-05-31 20:28                                           ` Continuous integration Dmitry Gutov
2017-05-31 23:19                                           ` Stephen Leake
2017-06-04 13:23                                           ` Philipp Stephani
2017-04-11 13:18                                       ` Ted Zlatanov
2017-04-11 13:37                                         ` Stefan Monnier
2017-04-11 13:51                                           ` Lars Brinkhoff
2017-04-11 14:34                                           ` Ted Zlatanov
2017-04-11 16:48                                           ` Phillip Lord
2017-04-07 16:11                               ` Phillip Lord
2017-03-29  5:01                         ` John Wiegley
2017-03-27 10:34       ` Andreas Politz
2017-03-27 12:00         ` Phillip Lord
2017-04-11  6:09 ` Lars Brinkhoff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m237doorhk.fsf@iotcl.com \
    --to=toon@iotcl.com \
    --cc=emacs-devel@gnu.org \
    --cc=phillip.lord@russet.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).