Skip to content

Commit

Permalink
[CI] Fetch tags before referring to them
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskurth committed Dec 23, 2021
1 parent bda7635 commit e88672b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitlab-ci.d/test-new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ if [ -z ${mergebase+x} ]; then
mergebase=llvmorg-12.0.1
fi

# Fetch all tags, so they can be referred to for diffs.
git fetch --tags

# Test discovery
prefix=$(git rev-parse --show-toplevel)
clang_tests=$(git diff --name-only $mergebase HEAD -- ${prefix}/clang/test | xargs -I{} -n1 echo ${prefix}/{})
Expand Down

0 comments on commit e88672b

Please sign in to comment.