Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cli
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
cli
Commits
2b723217
Verified
Commit
2b723217
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Added CI configuration to build CLI for linux
parent
6fa0ffc8
No related branches found
No related tags found
1 merge request
!5
Resolve "Provide precompiled binaries for easier install"
Pipeline
#4199
passed
6 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+45
-0
45 additions, 0 deletions
.gitlab-ci.yml
README.md
+21
-3
21 additions, 3 deletions
README.md
requirements-dev.txt
+19
-0
19 additions, 0 deletions
requirements-dev.txt
with
85 additions
and
3 deletions
.gitlab-ci.yml
+
45
−
0
View file @
2b723217
stages
:
stages
:
-
test
-
test
-
build
variables
:
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
...
@@ -17,3 +18,47 @@ test:
...
@@ -17,3 +18,47 @@ test:
-
pytest
-
pytest
tags
:
tags
:
-
docker
-
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/cli
-
master@funkwhale/cli
tags
:
-
docker
build-windows
:
# there is a weird Gitlab / windows interaction
# cf https://github.com/cdrx/docker-pyinstaller/issues/38
# so we cannot use the regular docker executor
stage
:
build
image
:
docker:stable
tags
:
-
docker-build
variables
:
# 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/'"
artifacts
:
name
:
"
linux_${CI_COMMIT_REF_NAME}"
paths
:
-
funkwhale.exe
only
:
-
tags@funkwhale/cli
-
master@funkwhale/cli
tags
:
-
docker-build
This diff is collapsed.
Click to expand it.
README.md
+
21
−
3
View file @
2b723217
...
@@ -2,15 +2,33 @@ A command line interface to interact with Funkwhale servers.
...
@@ -2,15 +2,33 @@ A command line interface to interact with Funkwhale servers.
# Installation
# Installation
We provide some prebuilt binaries for Windows and Linux.
On Linux:
```
curl -L "https://dev.funkwhale.audio/funkwhale/cli/-/jobs/artifacts/master/raw/funkwhale?job=build-linux" -o /usr/local/bin/funkwhale
chmod +x /usr/local/bin/funkwhale
```
On Windows:
```
curl -L "https://dev.funkwhale.audio/funkwhale/cli/-/jobs/artifacts/master/raw/funkwhale.exe?job=build-windows" -o funkwhale.exe
```
# Usage
``funkwhale --help``
# Installation (from source)
This cli requires python 3.6 or greater:
This cli requires python 3.6 or greater:
git clone https://dev.funkwhale.audio/funkwhale/cli.git
git clone https://dev.funkwhale.audio/funkwhale/cli.git
cd cli
cd cli
pip install .
pip install .
# Usage
``funkwhale --help``
# Build the binary
# Build the binary
...
...
This diff is collapsed.
Click to expand it.
requirements-dev.txt
0 → 100644
+
19
−
0
View file @
2b723217
aiofiles
aiohttp
appdirs
click
click-log
keyring
marshmallow
python-dotenv
semver
tabulate
tqdm
pathvalidate
aioresponses
asynctest
ipdb
pytest
pytest-mock
pytest-env
pyinstaller
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment