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

Added CI configuration to build CLI for linux

parent 6fa0ffc8
No related branches found
No related tags found
No related merge requests found
Pipeline #4184 failed
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
stages: stages:
- test # - test
- build
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
...@@ -8,12 +9,59 @@ cache: ...@@ -8,12 +9,59 @@ cache:
paths: paths:
- .cache/pip - .cache/pip
test: # test:
stage: test # stage: test
image: python:3.6 # image: python:3.6
# before_script:
# - pip install .[dev]
# script:
# - pytest
# tags:
# - docker
# build-linux:
# stage: build
# image: python:3.6
# before_script:
# - pip install .[dev]
# script:
# - pyinstaller --clean -y cli.spec --distpath .
# - echo "Testing the generated CLI works…" && ./funkwhale --help && echo "funkwhale CLI working \o/"
# artifacts:
# name: "linux_${CI_COMMIT_REF_NAME}"
# paths:
# - funkwhale
# # only:
# # - tags@funkwhale/funkwhale
# # - master@funkwhale/funkwhale
# tags:
# - docker
build-windows:
stage: build
image:
name: cdrx/pyinstaller-windows:python3
entrypoint: bash
variables:
CI_DEBUG_TRACE: "true"
before_script: before_script:
- wine
- pip install .[dev] - pip install .[dev]
script: script:
- pytest - pyinstaller --clean -y cli.spec --distpath .
- echo "Testing the generated CLI works…" && wine ./funkwhale.exe --help && echo "funkwhale CLI working \o/"
artifacts:
name: "linux_${CI_COMMIT_REF_NAME}"
paths:
- funkwhale
# only:
# - tags@funkwhale/funkwhale
# - master@funkwhale/funkwhale
tags: tags:
- docker - docker
- debug
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment