ci: format all YAML with `yq`
`yq` is the YAML query tool, used for manipulating YAML files. This
change uses the following command to read in and to pretty-print every
YAML file in this repository:
for x in $(find . -name '*.yaml'); do
yq -i -P -oy $x
done
This makes it a bit easier to automate synchronisation between staging
and upstream, as yq always pretty-prints the entire document when
manipulating files.
Signed-off-by: Chris Kay <chris.kay@arm.com>
Change-Id: If973766fa26500d5320612422d1b4999b23439d3
diff --git a/tf-a-sloc-visualization.yaml b/tf-a-sloc-visualization.yaml
index 881161f..2ee0e90 100644
--- a/tf-a-sloc-visualization.yaml
+++ b/tf-a-sloc-visualization.yaml
@@ -1,42 +1,41 @@
- job:
name: tf-a-sloc-visualization
- description: >-
- Generates a visualization of programming languages used by the code-base.
+ description: Generates a visualization of programming languages used by the code-base.
node: docker-amd64-tf-a-jammy
concurrent: true
properties:
- - build-discarder:
- days-to-keep: 30
+ - build-discarder:
+ days-to-keep: 30
parameters:
- - string:
- name: CI_REFSPEC
- default: +refs/heads/master:refs/remotes/origin/master
- - string:
- name: JOBS_REFSPEC
- default: 'refs/heads/master'
- description: |
- tf-a-job-configs refspec to use. The master branch is used by default.
- - string:
- name: TF_GERRIT_PROJECT
- default: TF-A/trusted-firmware-a
- - string:
- name: TF_GERRIT_BRANCH
- default: refs/heads/master
- - string:
- name: TF_GERRIT_REFSPEC
- default: +refs/heads/master:refs/remotes/origin/master
- - string:
- name: DIRECTORIES
- default: . ./drivers ./plat ./tools
- description: List of directories to analyze.
+ - string:
+ name: CI_REFSPEC
+ default: +refs/heads/master:refs/remotes/origin/master
+ - string:
+ name: JOBS_REFSPEC
+ default: refs/heads/master
+ description: |
+ tf-a-job-configs refspec to use. The master branch is used by default.
+ - string:
+ name: TF_GERRIT_PROJECT
+ default: TF-A/trusted-firmware-a
+ - string:
+ name: TF_GERRIT_BRANCH
+ default: refs/heads/master
+ - string:
+ name: TF_GERRIT_REFSPEC
+ default: +refs/heads/master:refs/remotes/origin/master
+ - string:
+ name: DIRECTORIES
+ default: . ./drivers ./plat ./tools
+ description: List of directories to analyze.
builders:
- - shell: !include-raw: scripts/clone.sh
- - shell: |
- mkdir -p output
+ - shell: !include-raw: scripts/clone.sh
+ - shell: |
+ mkdir -p output
- cd trusted-firmware-a &&
- bash ../tf-a-ci-scripts/script/graphs/sloc-viz.bash ${DIRECTORIES} \
- > ../output.png 2> ../output.tsv
+ cd trusted-firmware-a &&
+ bash ../tf-a-ci-scripts/script/graphs/sloc-viz.bash ${DIRECTORIES} \
+ > ../output.png 2> ../output.tsv
publishers:
- - archive:
- artifacts: output.*
+ - archive:
+ artifacts: output.*