Re: [PATCH v2 2/2] travis: convert ubuntu, centos & mingw builds to use new make rules

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

 



On Wed, 2019-03-06 at 09:34 +0000, Daniel P. Berrangé wrote:
> +++ b/.travis.yml
> @@ -11,26 +11,30 @@ matrix:
>          - docker
>        env:
>          - IMAGE="ubuntu-18"
> -        - DISTCHECK_CONFIGURE_FLAGS="--with-init-script=systemd"
> -        - DOCKER_CMD="$LINUX_CMD"
> +        - MAKE_ARGS="syntax-check distcheck DISTCHECK_CONFIGURE_FLAGS=--with-init-script-systemd"
> +      script:
> +        - make -f tests/Makefile.ci.inc cibuild-$IMAGE  MAKE_ARGS="$MAKE_ARGS"

Having a separate 'script' for each job in the matrix defeats the
purpose of setting values in the environment.

I would drop MINGW_CMD, change the existing LINUX_CMD to

  env:
    global:
      - LINUX_CMD='
          if test "$MINGW"; then
            make -f tests/Makefile.ci.inc "cibuild-$IMAGE" MAKE_ARGS="$MAKE_ARGS" CONFIGURE="$MINGW-configure";
          else
            make -f tests/Makefile.ci.inc "cibuild-$IMAGE" MAKE_ARGS="$MAKE_ARGS";
          fi
        '

and the existing default script to

  script:
    - /bin/sh -xc "$LINUX_CMD"

Alternatively, you can drop all _CMD variables, including MACOS_CMD,
and put the shell code right into the 'script' directives, but doing
so would mean losing the tracing feature which can be useful to track
down build issues...

-- 
Andrea Bolognani / Red Hat / Virtualization

--
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