diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8ce2cb83060d32b4ebc0c6d9f7bb24e6d7169cb..2c15519a846ff254830eb91e0178b967e91ae1c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -159,6 +159,12 @@ stages: .check-commits-behind-count-in-compare-jobs: &check-commits-behind-count-in-compare-jobs - if [ $commits_behind_count -ne 0 ]; then echo "Your branch is not up-to-date with main -> Compare tests will not run as they can contain false negatives this way.\nMain might have changed during your pipeline run. Run 'git merge origin/main' to update."; exit 1; fi +.copy-ltv-files-to-testv-dir: ©-ltv-files-to-testv-dir + - cp "$LTV_DIR"/*.wav scripts/testv/ + - cp "$LTV_DIR"/*.met scripts/testv/ + - cp "$LTV_DIR"/*.csv scripts/testv/ + + # --------------------------------------------------------------- # Job templates # --------------------------------------------------------------- @@ -1233,9 +1239,7 @@ test-long-self-test: ### prepare pytest # Copy test vectors from LTV to TESTV - - cp "$LTV_DIR"/*.wav scripts/testv/ - - cp "$LTV_DIR"/*.met scripts/testv/ - - cp "$LTV_DIR"/*.csv scripts/testv/ + - *copy-ltv-files-to-testv-dir # create references - exit_code_ref=0 @@ -1519,6 +1523,7 @@ coverage-test-on-main-scheduled: script: - *print-common-info - *update-ltv-repo + - *copy-ltv-files-to-testv-dir - make GCOV=1 -j - cp IVAS_rend IVAS_rend_ref # Copy exec to be able to run renderer script - python3 tests/create_short_testvectors.py