public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [cip-dev] [PATCH 4.19.y-cip] Add gitlab-ci.yaml
@ 2019-06-27 13:12 Chris Paterson
  2019-06-27 13:12 ` [cip-dev] [PATCH 4.4.y-cip] " Chris Paterson
  2019-07-02 10:51 ` [cip-dev] [PATCH v2 4.19.y-cip] " Chris Paterson
  0 siblings, 2 replies; 16+ messages in thread
From: Chris Paterson @ 2019-06-27 13:12 UTC (permalink / raw)
  To: cip-dev

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 <chris.paterson2@renesas.com>
---

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

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-07-11 11:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-27 13:12 [cip-dev] [PATCH 4.19.y-cip] Add gitlab-ci.yaml Chris Paterson
2019-06-27 13:12 ` [cip-dev] [PATCH 4.4.y-cip] " Chris Paterson
2019-06-28  0:20   ` daniel.sangorrin at toshiba.co.jp
2019-06-28  5:48     ` Jan Kiszka
2019-06-28  7:14       ` Chris Paterson
2019-07-02 10:51   ` [cip-dev] [PATCH v2 " Chris Paterson
2019-07-04  9:23     ` Chris Paterson
2019-07-08 13:16     ` [cip-dev] [PATCH v3 " Chris Paterson
2019-07-08 13:31       ` Chris Paterson
2019-07-11 10:58       ` Pavel Machek
2019-07-02 10:51 ` [cip-dev] [PATCH v2 4.19.y-cip] " Chris Paterson
2019-07-04  9:23   ` Chris Paterson
2019-07-08 13:15   ` [cip-dev] [PATCH v3 " Chris Paterson
2019-07-08 13:31     ` Chris Paterson
2019-07-11 10:56     ` Pavel Machek
2019-07-11 11:03     ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox