From 429e7e3fb667a2330af94e7564f12a6540252f3c Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Thu, 23 May 2019 15:12:29 +0200 Subject: [PATCH] Added CI configuration to build CLI for linux --- .gitlab-ci.yml | 58 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07d3af5..d6cf5bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - - test + # - test + - build variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" @@ -8,12 +9,59 @@ cache: paths: - .cache/pip -test: - stage: test - image: python:3.6 +# test: +# stage: test +# 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: + + - wine - pip install .[dev] 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: - docker + - debug -- GitLab