From patchwork Thu Jun 27 13:12:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Paterson X-Patchwork-Id: 11019705 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED35C14E5 for ; Thu, 27 Jun 2019 13:18:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCB4728999 for ; Thu, 27 Jun 2019 13:18:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D136328A13; Thu, 27 Jun 2019 13:18:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 47B6728999 for ; Thu, 27 Jun 2019 13:18:10 +0000 (UTC) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id EBCE7CC6; Thu, 27 Jun 2019 13:18:09 +0000 (UTC) X-Original-To: cip-dev@lists.cip-project.org Delivered-To: cip-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 63ADECC3 for ; Thu, 27 Jun 2019 13:18:08 +0000 (UTC) X-Greylist: delayed 00:05:03 by SQLgrey-1.7.6 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 8FE233D0 for ; Thu, 27 Jun 2019 13:18:07 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.62,423,1554735600"; d="scan'208";a="19886870" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 27 Jun 2019 22:13:03 +0900 Received: from renesas-ubuntu18.ree.adwin.renesas.com (unknown [10.226.36.226]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 4B78F4286E15; Thu, 27 Jun 2019 22:13:03 +0900 (JST) From: Chris Paterson To: cip-dev@lists.cip-project.org Date: Thu, 27 Jun 2019 14:12:49 +0100 Message-Id: <20190627131250.7932-1-chris.paterson2@renesas.com> X-Mailer: git-send-email 2.17.1 Subject: [cip-dev] [PATCH 4.19.y-cip] Add gitlab-ci.yaml X-BeenThere: cip-dev@lists.cip-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cip-dev-bounces@lists.cip-project.org Errors-To: cip-dev-bounces@lists.cip-project.org X-Virus-Scanned: ClamAV using ClamSMTP This is configured to build and test for the following configurations: 1. ARCH: arm CONFIGS: shmobile_defconfig BOARDS: r8a7743-iwg20d 2. ARCH: arm64 CONFIGS: defconfig BOARDS: r8a774c0-ek874 Build/test Docker containers and scripts are created by the https://gitlab.com/cip-playground/linux-cip-ci repository. 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. These changes should all all be handled in the linux-cip-ci repository. Signed-off-by: Chris Paterson --- In theory this file is only required in our GitLab repository. However if we add it there the automatic mirroring from the kernel.org repository will be broken. I also tried the GitLab option to create a new repository for CI/CD 'only'. However this also has the exact same problem. This means that the best/easiest approach will be to just add the .gitlab-ci.yml file directly to the kernel.org repository. Most people can ignore it. There may well be some chrun in this file as linux-cip-ci improves, but this is a good starting point. .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..d619ef0c1969 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +variables: + GIT_STRATEGY: none + DOCKER_DRIVER: overlay2 + +before_script: + - cd /opt/linux + - git fetch origin + - git checkout $CI_COMMIT_SHA + +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 +