fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerDon't try to download vermin during test execution396802542

master
742 B28 linesraw
1#RUN: %fish %s
2#REQUIRES: command -v vermin
3
4set -l webconfig (status dirname)/../../share/tools/web_config/webconfig.py
5set -l create_manpage (status dirname)/../../share/tools/create_manpage_completions.py
6set -l min_version 3.5
7
8# use vermin to detect minimum Python version violations
9# features enabled:
10#   - union-types: catch `str | None` syntax (3.10+)
11#   - fstring-self-doc: catch f'{var=}' syntax (3.8+)
12set -l output (vermin \
13    --no-tips \
14    --violations \
15    --feature union-types \
16    --feature fstring-self-doc \
17    --target=$min_version- \
18    $webconfig \
19    $create_manpage \
20    2>&1 | string collect)
21set -l exit_code $pipestatus[1]
22
23echo $exit_code
24# CHECK: 0
25
26if test $exit_code -ne 0
27    echo $output >&2
28end