Skip to contentSkip to conversation

gitlab-ci.yml: Add .gitlab-ci.d directory for GitLab specific files

PATCH In review Philippe Mathieu-Daudé 3 participants 3 messages Feb 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitlab-ci.yml: Add .gitlab-ci.d directory for GitLab specific files

As we plan to let maintainers managing their own GitLab CI jobs, add a single directory to contain all the new files (to keep the root directory cleaner).

EDK2 job is the first user, move it there.

---
 .gitignore                                   | 1 +
 .gitlab-ci-edk2.yml => .gitlab-ci.d/edk2.yml | 2 +-
 .gitlab-ci.yml                               | 2 +-
 MAINTAINERS                                  | 3 +--
 4 files changed, 4 insertions(+), 4 deletions(-)
 rename .gitlab-ci-edk2.yml => .gitlab-ci.d/edk2.yml (98%)
.gitignore +1 -0
index bc0a035f9c..18288eacd1 100644
@@ -95,6 +95,7 @@
 *.tp
 *.vr
 *.d
+!/.gitlab-ci.d
 !/scripts/qemu-guest-agent/fsfreeze-hook.d
 *.o
 .sdk
.gitlab-ci.d/edk2.yml renamed from .gitlab-ci-edk2.yml +1 -1
similarity index 98%
rename from .gitlab-ci-edk2.yml
rename to .gitlab-ci.d/edk2.yml
index 088ba4b43a..a9990b7147 100644
@@ -2,7 +2,7 @@ docker-edk2:
  stage: build
  rules: # Only run this job when the Dockerfile is modified
  - changes:
-   - .gitlab-ci-edk2.yml
+   - .gitlab-ci.d/edk2.yml
    - .gitlab-ci.d/edk2/Dockerfile
    when: always
  image: docker:19.03.1
.gitlab-ci.yml +1 -1
index c15e394f09..dae6045d78 100644
@@ -1,5 +1,5 @@
 include:
-  - local: '/.gitlab-ci-edk2.yml'
+  - local: '/.gitlab-ci.d/edk2.yml'
 
 before_script:
  - apt-get update -qq
MAINTAINERS +1 -2
index c7717df720..fb00a55f41 100644
@@ -2391,8 +2391,7 @@ F: roms/edk2
 F: roms/edk2-*
 F: tests/data/uefi-boot-images/
 F: tests/uefi-test-tools/
-F: .gitlab-ci-edk2.yml
-F: .gitlab-ci.d/edk2/
+F: .gitlab-ci.d/edk2*
 
 Usermode Emulation
 ------------------
Signature · 1 line
2.21.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 61 lines · Philippe Mathieu-Daudé

As we plan to let maintainers managing their own GitLab CI jobs, add a single directory to contain all the new files (to keep the root directory cleaner).

EDK2 job is the first user, move it there.

---
 .gitignore                                   | 1 +
 .gitlab-ci-edk2.yml => .gitlab-ci.d/edk2.yml | 2 +-
 .gitlab-ci.yml                               | 2 +-
 MAINTAINERS                                  | 3 +--
 4 files changed, 4 insertions(+), 4 deletions(-)
 rename .gitlab-ci-edk2.yml => .gitlab-ci.d/edk2.yml (98%)
.gitignore +1 -0
index bc0a035f9c..18288eacd1 100644
@@ -95,6 +95,7 @@
 *.tp
 *.vr
 *.d
+!/.gitlab-ci.d
 !/scripts/qemu-guest-agent/fsfreeze-hook.d
 *.o
 .sdk
.gitlab-ci.d/edk2.yml renamed from .gitlab-ci-edk2.yml +1 -1
similarity index 98%
rename from .gitlab-ci-edk2.yml
rename to .gitlab-ci.d/edk2.yml
index 088ba4b43a..a9990b7147 100644
@@ -2,7 +2,7 @@ docker-edk2:
  stage: build
  rules: # Only run this job when the Dockerfile is modified
  - changes:
-   - .gitlab-ci-edk2.yml
+   - .gitlab-ci.d/edk2.yml
    - .gitlab-ci.d/edk2/Dockerfile
    when: always
  image: docker:19.03.1
.gitlab-ci.yml +1 -1
index c15e394f09..dae6045d78 100644
@@ -1,5 +1,5 @@
 include:
-  - local: '/.gitlab-ci-edk2.yml'
+  - local: '/.gitlab-ci.d/edk2.yml'
 
 before_script:
  - apt-get update -qq
MAINTAINERS +0 -0
index c7717df720..fb00a55f41 100644

MAINTAINERS F: roms/edk2 · line 2397

Quoted 9 lines
MAINTAINERS +1 -2
@@ -2391,8 +2391,7 @@ F: roms/edk2
 F: roms/edk2-*
 F: tests/data/uefi-boot-images/
 F: tests/uefi-test-tools/
-F: .gitlab-ci-edk2.yml
-F: .gitlab-ci.d/edk2/
+F: .gitlab-ci.d/edk2*
 
 Usermode Emulation
 ------------------
Acked-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 3 lines · Philippe Mathieu-Daudé

As we plan to let maintainers managing their own GitLab CI jobs, add a single directory to contain all the new files (to keep the root directory cleaner).

The title and description is a little bit confusing, since the directory is already there and you just move the YML file into it... so I'd suggest to rather talk about moving that file instead of adding the directory.

With the patch description updated: