[cip-dev] [PATCH v2 4.19.y-cip] Add gitlab-ci.yaml

Chris Paterson
2019-07-04T09:23:16Z

Hello all,

It was decided in the weekly meeting today by the maintainers that we will add the .gitlab-ci.yml files (i.e. this patch) to the main kernel.org repository.

However, I've been busy this week and already have more changes to make.

So please drop this patch and I'll submit a V3 in the next few days.

I'll mark it accordingly in patchwork.

Kind regards, Chris

> From: Chris Paterson <chris.paterson2@renesas.com>
> Sent: 02 July 2019 11:51
>
> This is configured to build and test for the following configurations:
>
> 1.
> ARCH: arm
> CONFIGS: shmobile_defconfig
> BOARDS: r8a7743-iwg20d, r8a7745-iwg22d
> 2.
> ARCH: arm64
> CONFIGS: defconfig
> BOARDS: r8a774c0-ek874
>
> Over time support will be added for all CIP supported architectures and
> configurations.
>
> At the moment only simple boot tests are run. Real tests will be added in
> the future.
>
> Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
> ---
>
> v1->v2: Updated to use latest linux-cip-ci version: 9d56f41a
>
> I still prefer to have these .gitlab-ci.yml files in the main cip repo,
> rather then split them off into their own repo and trigger them with
> hooks. Any opinions Kernel maintainers?
>
>
> .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
> create mode 100644 .gitlab-ci.yml
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> new file mode 100644
> index 000000000000..71d92c975723
> --- /dev/null
> +++ b/.gitlab-ci.yml
> @@ -0,0 +1,35 @@
> +variables:
> + GIT_STRATEGY: clone
> + GIT_DEPTH: "10"
> + DOCKER_DRIVER: overlay2
> +
> +build_arm_shmobile_defconfig:
> + stage: build
> + image: registry.gitlab.com/cip-playground/linux-cip-ci:build-latest
> + script:
> + - /opt/build_kernel.sh arm shmobile_defconfig
> + artifacts:
> + name: "$CI_JOB_NAME"
> + when: on_success
> + paths:
> + - output
> +
> +build_arm64_defconfig:
> + stage: build
> + image: registry.gitlab.com/cip-playground/linux-cip-ci:build-latest
> + script:
> + - /opt/build_kernel.sh arm64 defconfig
> + artifacts:
> + name: "$CI_JOB_NAME"
> + when: on_success
> + paths:
> + - output
> +
> +run_tests:
> + stage: test
> + image: registry.gitlab.com/cip-playground/linux-cip-ci:test-latest
> + when: always
> + before_script: []
> + script:
> + - /opt/submit_tests.sh
> +
> --
> 2.17.1