Skip to content

Commit

Permalink
Added metrics for ldasoft
Browse files Browse the repository at this point in the history
  • Loading branch information
trana authored and trana committed Jan 17, 2023
1 parent 5506e15 commit fa387e1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ variables:
# Either empty "" or contains "/" at the end (eg "imageparent/").
IMAGE_PARENT: ""
ARTIFACT_DIR: "./archive" # must be relative to the build directory - https://gitlab.com/gitlab-org/gitlab-foss/-/issues/15530

# For metrics. Git repositories separated by "|".
repo_list_to_count: "https://github.com/tlittenberg/ldasoft"

stages:
- build
- count-lines-of-code
- push

default:
Expand Down Expand Up @@ -60,6 +62,24 @@ build:
paths:
- "${ARTIFACT_DIR}/"

include:
remote: "https://gitlab.com/guided-explorations/code-metrics/ci-cd-extension-scc/-/raw/master/ci-cd-extension-scc.yml"
count-lines-of-code:
# Cleans because we only want metrics to the nested git clone.
before_script:
- |
pwd
id
ls -al
find
echo "Cleaning everyhing but ./archive for SCC of ${repo_list_to_count}..."
find -not -path ./archive -type f -delete
find -not -path ./archive -type d -delete
echo "Clean done."
find
stage: count-lines-of-code
extends: .ci-cd-extension-scc

push:
stage: "push"
image:
Expand Down

0 comments on commit fa387e1

Please sign in to comment.