ci: use a junction on Windows instead of a symlink

Symbolic links are still not quite as easy to use on Windows as on Linux (for example, on versions older than Windows 10, only administrators can create symlinks, and on Windows 10 you still need to be in developer mode for regular users to have permission), but NTFS junctions can give us a way out. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jan 27, 2019 at 15:26 UTC 4b060a4d973ddfb9c8e03585aa5a80253980ed59
1 file changed +4 -1
ci/run-build-and-tests.sh
+4 -1
@@ -5,7 +5,10 @@
5
6 . ${0%/*}/lib.sh
7
8 -ln -s "$cache_dir/.prove" t/.prove
8 +case "$CI_OS_NAME" in
9 +windows*) cmd //c mklink //j t\\.prove "$(cygpath -aw "$cache_dir/.prove")";;
10 +*) ln -s "$cache_dir/.prove" t/.prove;;
11 +esac
12
13 make
14 make --quiet test