Chris Kay | 7e61b4d | 2022-01-10 11:48:02 +0000 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-sloc-visualization |
| 3 | description: >- |
| 4 | Generates a visualization of programming languages used by the code-base. |
| 5 | node: docker-amd64-tf-a-jammy |
| 6 | concurrent: true |
| 7 | properties: |
| 8 | - authorization: !include: authorization.yaml.inc |
| 9 | - build-discarder: |
| 10 | days-to-keep: 30 |
| 11 | parameters: |
| 12 | - string: |
| 13 | name: CI_REFSPEC |
| 14 | default: +refs/heads/master:refs/remotes/origin/master |
| 15 | - string: |
| 16 | name: TF_GERRIT_PROJECT |
| 17 | default: TF-A/trusted-firmware-a |
| 18 | - string: |
| 19 | name: TF_GERRIT_BRANCH |
| 20 | default: refs/heads/master |
| 21 | - string: |
| 22 | name: TF_GERRIT_REFSPEC |
| 23 | default: +refs/heads/master:refs/remotes/origin/master |
| 24 | - string: |
| 25 | name: DIRECTORIES |
| 26 | default: . ./drivers ./plat ./tools |
| 27 | description: List of directories to analyze. |
| 28 | builders: |
| 29 | - shell: !include-raw: scripts/clone.sh |
| 30 | - shell: | |
| 31 | mkdir -p output |
| 32 | |
| 33 | cd trusted-firmware-a && |
| 34 | bash ../tf-a-ci-scripts/script/graphs/sloc-viz.bash ${DIRECTORIES} \ |
| 35 | > ../output.png 2> ../output.tsv |
| 36 | publishers: |
| 37 | - archive: |
| 38 | artifacts: output.* |