[libvirt] [PATCH v5] tests: perform cross compiler builds on GitLab CI

Daniel P. Berrangé posted 1 patch 5 years ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20190411173953.23724-1-berrange@redhat.com
There is a newer version of this series
.gitlab-ci.yml | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
create mode 100644 .gitlab-ci.yml
[libvirt] [PATCH v5] tests: perform cross compiler builds on GitLab CI
Posted by Daniel P. Berrangé 5 years ago
GitLab CI provides some shared build runners that use Docker containers.
This resource can usefully run cross-compiled builds since all other CI
build testing is currently x86 only, and Travis CI is already very busy
testing native builds.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

Changed in v4:

 - Fix env name
 - Rename jobs to match image name

 .gitlab-ci.yml | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000..f576757c88
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,74 @@
+.job_template: &job_definition
+  script:
+    - mkdir vpath
+    - cd vpath
+    - ../autogen.sh $CONFIGURE_OPTS
+    - make -j $(getconf _NPROCESSORS_ONLN)
+
+debian-9-cross-aarch64:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-aarch64:master
+
+debian-9-cross-armv6l:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-armv6l:master
+
+debian-9-cross-armv7l:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-armv7l:master
+
+debian-9-cross-mips64el:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-mips64el:master
+
+debian-9-cross-mips:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-mips:master
+
+debian-9-cross-mipsel:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-mipsel:master
+
+debian-9-cross-ppc64le:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-ppc64le:master
+
+debian-9-cross-s390x:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-9-cross-s390x:master
+
+debian-sid-cross-aarch64:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-aarch64:master
+
+debian-sid-cross-armv6l:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-armv6l:master
+
+debian-sid-cross-armv7l:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-armv7l:master
+
+debian-sid-cross-i686:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-i686:master
+
+debian-sid-cross-mips64el:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-mips64el:master
+
+debian-sid-cross-mips:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-mips:master
+
+debian-sid-cross-mipsel:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-mipsel:master
+
+debian-sid-cross-ppc64le:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-ppc64le:master
+
+debian-sid-cross-s390x:
+  <<: *job_definition
+  image: quay.io/libvirt/buildenv-debian-sid-cross-s390x:master
-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v5] tests: perform cross compiler builds on GitLab CI
Posted by Peter Krempa 5 years ago
On Thu, Apr 11, 2019 at 18:39:53 +0100, Daniel Berrange wrote:
> GitLab CI provides some shared build runners that use Docker containers.
> This resource can usefully run cross-compiled builds since all other CI
> build testing is currently x86 only, and Travis CI is already very busy
> testing native builds.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
> 
> Changed in v4:
> 
>  - Fix env name
>  - Rename jobs to match image name

[...]

> +debian-9-cross-aarch64:
> +debian-9-cross-armv6l:
> +debian-9-cross-armv7l:
> +debian-9-cross-mips64el:
> +debian-9-cross-mips:
> +debian-9-cross-mipsel:
> +debian-9-cross-ppc64le:
> +debian-9-cross-s390x:

> +debian-sid-cross-aarch64:
> +debian-sid-cross-armv6l:
> +debian-sid-cross-armv7l:
> +debian-sid-cross-i686:
> +debian-sid-cross-mips64el:
> +debian-sid-cross-mips:
> +debian-sid-cross-mipsel:
> +debian-sid-cross-ppc64le:
> +debian-sid-cross-s390x:

Doing all of this twice seems like an awful waste of electricity. Given
that our "testing" is builds and testsuite runs it does not seem that
much useful either.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH v5] tests: perform cross compiler builds on GitLab CI
Posted by Daniel P. Berrangé 5 years ago
On Fri, Apr 12, 2019 at 09:53:14AM +0200, Peter Krempa wrote:
> On Thu, Apr 11, 2019 at 18:39:53 +0100, Daniel Berrange wrote:
> > GitLab CI provides some shared build runners that use Docker containers.
> > This resource can usefully run cross-compiled builds since all other CI
> > build testing is currently x86 only, and Travis CI is already very busy
> > testing native builds.
> > 
> > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> > ---
> > 
> > Changed in v4:
> > 
> >  - Fix env name
> >  - Rename jobs to match image name
> 
> [...]
> 
> > +debian-9-cross-aarch64:
> > +debian-9-cross-armv6l:
> > +debian-9-cross-armv7l:
> > +debian-9-cross-mips64el:
> > +debian-9-cross-mips:
> > +debian-9-cross-mipsel:
> > +debian-9-cross-ppc64le:
> > +debian-9-cross-s390x:
> 
> > +debian-sid-cross-aarch64:
> > +debian-sid-cross-armv6l:
> > +debian-sid-cross-armv7l:
> > +debian-sid-cross-i686:
> > +debian-sid-cross-mips64el:
> > +debian-sid-cross-mips:
> > +debian-sid-cross-mipsel:
> > +debian-sid-cross-ppc64le:
> > +debian-sid-cross-s390x:
> 
> Doing all of this twice seems like an awful waste of electricity. Given
> that our "testing" is builds and testsuite runs it does not seem that
> much useful either.

Debian sid vs debian 9 are very different vintages of software, so IMHO
it is reasonable to cover both distros.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list