proletarius101
5fe1fa9dd3
test(deploy): fix errors
2024-05-20 00:55:28 +08:00
proletarius101
092a8dda2e
fix(deploy): don't recreate the branches
2024-05-20 00:16:27 +08:00
Hans-Christoph Steiner
2d267e6cbd
fix: avoid making the parent directory redundantly in test case
2024-04-06 05:49:49 +00:00
proletarius101
6271de094e
fix: ModuleNotFoundError
2024-02-28 08:02:35 +00:00
proletarius101
51b88b784b
lint: fix black formatting
2024-02-28 08:02:35 +00:00
proletarius101
7022eabe84
fix(deploy): remove the index-only mode from elsewhere except the config file
...
To enable per-remote configuration
2024-02-28 08:02:35 +00:00
proletarius101
b3c15038da
style: fix lint
2024-02-28 08:02:35 +00:00
proletarius101
775316747c
style: fix lint
2024-02-28 08:02:35 +00:00
proletarius101
4a793cd67a
refactor: use _get_index_file_paths() instead of this mix of --include/--exclude
2024-02-28 08:02:35 +00:00
proletarius101
e05bc9c1db
refactor: remove the support of the index only mode when syncing to the local filesystem
2024-02-28 08:02:35 +00:00
proletarius101
b4b4b20b4c
feat(deploy): add index only mode in update_servergitmirrors
2024-02-28 08:02:35 +00:00
proletarius101
d814291577
style(deploy): remove unused imports
2024-02-28 08:02:35 +00:00
proletarius101
34395b0932
test(deploy): add test cases for update_awsbucket_libcloud and fix errors
2024-02-28 08:02:35 +00:00
proletarius101
aa99f27afb
test(deploy): add test cases for update_awsbucket_s3cmd
2024-02-28 08:02:35 +00:00
proletarius101
a853d6027e
fix(deploy): add test cases for local copy mode and fix issues
2024-02-28 08:02:35 +00:00
proletarius101
738d7dbf4e
fix(deploy): add test cases for server webroot mode and fix issues
2024-02-28 08:02:35 +00:00
proletarius101
aa54495388
test(deploy): properly test non-index-only mode
2024-02-28 08:02:35 +00:00
proletarius101
947217549a
feat: add servergitmirrors as a dict support
2024-02-14 16:50:39 +00:00
Hans-Christoph Steiner
810387a009
deploy: update_serverwebroots() for testable logic
...
This moves all of the serverwebroot: logic into a function, and adds tests.
I did this because I ran into issues in the logic in main():
Traceback (most recent call last):
File "/builds/eighthave/fdroidserver/fdroid", line 22, in <module>
fdroidserver.__main__.main()
File "/builds/eighthave/fdroidserver/fdroidserver/__main__.py", line 230, in main
raise e
File "/builds/eighthave/fdroidserver/fdroidserver/__main__.py", line 211, in main
mod.main()
File "/builds/eighthave/fdroidserver/fdroidserver/deploy.py", line 753, in main
s = serverwebroot.rstrip('/').split(':')
AttributeError: 'dict' object has no attribute 'rstrip'
2024-01-23 18:49:12 +01:00
Hans-Christoph Steiner
fbf097d390
deploy: update_serverwebroot() works w/o options/config
...
Since update_serverwebroot() is part of the public API, this function should
work without setting `fdroidserver.deploy.options` or
`fdroidserver.deploy.config`.
2024-01-23 17:48:47 +01:00
Hans-Christoph Steiner
7a656d45e3
config: convert serverwebroot: to list-of-dicts format
...
This allows for more metadata about the server and deploy mode.
2024-01-22 22:11:49 +01:00
Hans-Christoph Steiner
00aa595f37
deploy: give useful error if rsync is not installed
2023-09-08 10:42:27 +02:00
Hans-Christoph Steiner
7641c30389
add real test of moving files with deploy.update_serverwebroot()
2023-04-24 11:08:42 +02:00
Hans-Christoph Steiner
b92e280eab
fix code format for new black rule
2023-03-20 14:47:48 +01:00
Hans-Christoph Steiner
01f7dfd0b3
index-v2.jar is not a valid file, remove references
...
entry.jar is the signed file, it references index-v2.json.
2022-11-15 13:22:09 +00:00
Hans-Christoph Steiner
2448f070e9
fix tests and docstring error
2022-05-23 15:34:30 +02:00
Hans-Christoph Steiner
707cd7addb
publish index-v1.json and include a gpg signature
...
This gives a more flexible and direct way for many clients to consume the
index file. #969
2022-02-22 22:58:09 +01:00
Hans-Christoph Steiner
d05ff9db1d
easy changes to black code format in test cases
...
This does not change areas of code that should be manually reformatted.
2021-06-07 11:53:58 +02:00
Hans-Christoph Steiner
17f6a778ba
deploy: move server.py to deploy.py and remove aliases
...
closes #832
2020-10-21 11:38:49 +02:00