Skip to content
Snippets Groups Projects

Clean up and pin dependencies

Merged EorlBruder requested to merge EorlBruder/cli:fix-9 into master
5 files
+ 35
53
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 4
8
@@ -13,7 +13,7 @@ test:
@@ -13,7 +13,7 @@ test:
stage: test
stage: test
image: python:3.6
image: python:3.6
before_script:
before_script:
- pip install .[dev]
- pip install .[test]
script:
script:
- pytest
- pytest
tags:
tags:
@@ -23,7 +23,7 @@ build-linux:
@@ -23,7 +23,7 @@ build-linux:
stage: build
stage: build
image: python:3.8
image: python:3.8
before_script:
before_script:
- pip install .[dev]
- pip install .[build]
- pip install --upgrade setuptools
- pip install --upgrade setuptools
script:
script:
- pyinstaller --clean -y cli.spec --distpath .
- pyinstaller --clean -y cli.spec --distpath .
@@ -45,18 +45,14 @@ build-windows:
@@ -45,18 +45,14 @@ build-windows:
# so we cannot use the regular docker executor
# so we cannot use the regular docker executor
stage: build
stage: build
image: docker:stable
image: docker:stable
tags:
- docker-build
variables:
# CI_DEBUG_TRACE: "true"
script:
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 "pip install .[build] && 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 | grep uploads) && 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/'"
after_script:
after_script:
- docker run --rm -v "$(pwd):/src/" python:3.8 bash -c "rm -rf /src/build && py3clean /src/"
- docker run --rm -v "$(pwd):/src/" python:3.8 bash -c "rm -rf /src/build && py3clean /src/"
artifacts:
artifacts:
name: "linux_${CI_COMMIT_REF_NAME}"
name: "windows_${CI_COMMIT_REF_NAME}"
paths:
paths:
- funkwhale.exe
- funkwhale.exe
only:
only:
Loading