mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 09:37:46 +08:00
a50419da1c
git_version_gen fails on Noble Numbat because modern Git refuses to read repo-local config if owned by another user. fishuser@a4263f53c93e:~/fish-build$ cd /fish-source/ fishuser@a4263f53c93e:/fish-source$ git describe --always --dirty fatal: detected dubious ownership in repository at '/fish-source' To add an exception for this directory, call: Allow reading it (though that doesn't seem necessary here, it would be better to ignore it).
25 lines
572 B
Bash
Executable File
25 lines
572 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script is copied into the root directory of our Docker tests.
|
|
# It is the entry point for running Docker-based tests.
|
|
|
|
cd ~/fish-build
|
|
git config --global --add safe.directory /fish-source
|
|
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug /fish-source "$@"
|
|
|
|
# Spawn a shell if FISH_RUN_SHELL_BEFORE_TESTS is set.
|
|
if test -n "$FISH_RUN_SHELL_BEFORE_TESTS"
|
|
then
|
|
bash -i || exit
|
|
fi
|
|
|
|
ninja && ninja fish_run_tests
|
|
RES=$?
|
|
|
|
# Drop the user into a shell if FISH_RUN_SHELL_AFTER_TESTS is set.
|
|
if test -n "$FISH_RUN_SHELL_AFTER_TESTS"; then
|
|
bash -i
|
|
fi
|
|
|
|
exit $RES
|