[PATCH] travis: Update to job matrix
Samuel Mendoza-Jonas
sam at mendozajonas.com
Tue Aug 28 17:01:45 AEST 2018
On Fri, 2018-08-17 at 10:59 -0700, Geoff Levand wrote:
> o Set language to bash (same as generic), so just the
> scrip steps run.
> o Move build-builder to 'before_script'.
> o Switch to a job matrix of 'os' entries with names.
>
> Signed-off-by: Geoff Levand <geoff at infradead.org>
> ---
> Hi Sam,
>
> This updates the travis file to use a job matrix. The jobs run should
> be unchanged, but this gives the jobs a name, which is displayed in the
> travis UI. A job matrix allows for more advanced logic that we can take
> advantage of if we start adding more jobs.
>
> Please consider.
>
> -Geoff
Thanks, merged as 27c55969.
>
> .travis.yml | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index f458213..cff60dc 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -1,13 +1,17 @@
> -language: c
> +language: bash
>
> sudo: required
> dist: trusty
> services: docker
> -os:
> - - linux
> - - linux-ppc64le
>
> -before_install:
> +matrix:
> + include:
> + - os: linux
> + name: "linux"
> + - os: linux-ppc64le
> + name: "linux-ppc64le"
> +
> +before_script:
> - ./docker/build-builder
>
> script:
More information about the Petitboot
mailing list