Skip to content
Snippets Groups Projects
Verified Commit cf66e93d authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Safeguard for CLI building on linux / windows

parent ccbf4825
No related branches found
No related tags found
No related merge requests found
Pipeline #4593 passed
......@@ -26,7 +26,7 @@ build-linux:
- pip install .[dev]
script:
- pyinstaller --clean -y cli.spec --distpath .
- echo "Testing the generated CLI works…" && ./funkwhale --help && echo "funkwhale CLI working \o/"
- echo "Testing the generated CLI works…" && (./funkwhale --help | grep uploads) && echo "funkwhale CLI working \o/"
artifacts:
name: "linux_${CI_COMMIT_REF_NAME}"
paths:
......@@ -51,7 +51,7 @@ build-windows:
# CI_DEBUG_TRACE: "true"
script:
- docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "pip install -r requirements-dev.txt && pyinstaller --clean -y cli.spec --distpath ."
- docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "echo 'Testing the generated CLI works…' && wine ./funkwhale.exe --help && echo 'funkwhale CLI working \o/'"
- docker run --rm -v "$(pwd):/src/" cdrx/pyinstaller-windows:python3 "echo 'Testing the generated CLI works…' && (wine ./funkwhale.exe --help | grep uploads) && echo 'funkwhale CLI working \o/'"
artifacts:
name: "linux_${CI_COMMIT_REF_NAME}"
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment