mirror of
https://codeberg.org/secana/Forji.git
synced 2026-06-16 05:13:55 -07:00
refactor: clean up justfile
This commit is contained in:
parent
6596f6116d
commit
3adda37fb1
1 changed files with 6 additions and 5 deletions
11
justfile
11
justfile
|
|
@ -234,8 +234,7 @@ test-one filter="" destination=default_destination:
|
|||
just build-for-testing '{{destination}}' '{{destination}}' &
|
||||
wait
|
||||
just seed
|
||||
just _write-url-file '{{destination}}' '{{base_url_1}}'
|
||||
echo "{{base_url_1}}" > /tmp/forgejo_test_url.txt
|
||||
just _write-url-file '{{destination}}' '{{base_url_1}}' true
|
||||
xcodebuild test-without-building \
|
||||
-project Forji/Forji.xcodeproj \
|
||||
-scheme Forji \
|
||||
|
|
@ -261,15 +260,17 @@ build-for-testing destination_a=default_destination destination_b=default_destin
|
|||
-destination '{{destination_b}}' 2>&1 | xcbeautify
|
||||
|
||||
[private]
|
||||
_write-url-file destination url:
|
||||
_write-url-file destination url fallback="false":
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
SIM="$(echo '{{destination}}' | sed -n 's/.*name=\([^,]*\).*/\1/p')"
|
||||
SIM_SAFE="${SIM// /_}"
|
||||
echo "{{url}}" > "/tmp/forgejo_test_url_${SIM_SAFE}.txt"
|
||||
if [ "{{fallback}}" = "true" ]; then
|
||||
echo "{{url}}" > /tmp/forgejo_test_url.txt
|
||||
fi
|
||||
|
||||
[private]
|
||||
_write-url-files destination_a=default_destination destination_b=default_destination_b:
|
||||
just _write-url-file '{{destination_a}}' '{{base_url_1}}'
|
||||
just _write-url-file '{{destination_a}}' '{{base_url_1}}' true
|
||||
just _write-url-file '{{destination_b}}' '{{base_url_2}}'
|
||||
echo "{{base_url_1}}" > /tmp/forgejo_test_url.txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue