Re: [PATCH 3/3] tests: perform cross compiler builds on GitLab CI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 28, 2019 at 12:06:10PM +0000, Daniel P. Berrangé 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.

You should be able to see the results of my tests with GitLab CI and
cross-compiler builds here:

  https://gitlab.com/berrange/libvirt/pipelines/45067543

NB, I only created docker images for s390x & arm64, hence why only
those 2 builds succeeded.

Other note is that email notifications are enabled from the admin
UI, not the .gitlab-ci.yml file, hence why this doesn't mention
the libvirt-ci mailing list like travis.yml does.

>

> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 .gitlab-ci.yml
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> new file mode 100644
> index 0000000000..081d9d8f91
> --- /dev/null
> +++ b/.gitlab-ci.yml
> @@ -0,0 +1,38 @@
> +.job_template: &job_definition
> +  script:
> +    - mkdir vpath
> +    - cd vpath
> +    - ../autogen.sh $LIBVIRT_CONFIGURE_OPTS
> +    - make -j $(getconf _NPROCESSORS_ONLN)
> +
> +crossarm64:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-arm64
> +
> +crossarmel:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-armel
> +
> +crossarmhf:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-armhf
> +
> +crossmips64el:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-mips64el
> +
> +crossmips:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-mips
> +
> +crossmipsel:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-mipsel
> +
> +crossppc64el:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-ppc64el
> +
> +crosss390x:
> +  <<: *job_definition
> +  image: quay.io/libvirt/buildenv-cross-s390x
> -- 
> 2.20.1
> 

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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux