proletarius101
78b6e53e42
style(deploy): fix pyflake
2024-06-05 02:38:14 +08:00
proletarius101
40ecaff6fe
fix(deploy): all files are uploaded if the index only mode deployment follows a full mode one
...
switch the branch before rsyncing
2024-06-03 21:09:03 +08:00
proletarius101
a09552207d
test(deploy): make sure the APK file is not uploaded in the index only mode
2024-06-02 23:27:58 +08:00
proletarius101
10c06b8b44
fix(deploy): local files are not synced to the local git repo
2024-06-02 23:06:23 +08:00
proletarius101
cd2a0fbf29
fix(deploy): files are not pushed to the remote
2024-06-02 19:31:13 +08:00
proletarius101
04c191e4d8
test(deploy): fix fdroidserver.deploy.options is None
2024-05-23 22:40:51 +08:00
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
1e259cb043
style: fix lint
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
Nitai Sasson
8931e038d6
add 'non-changeable' to NonFreeNet description
2024-02-21 17:13:58 +01:00
proletarius101
947217549a
feat: add servergitmirrors as a dict support
2024-02-14 16:50:39 +00:00
Hans-Christoph Steiner
031a130395
scanner: add refresh_config config item for buildserver
...
Includes some cosmetic changes from black.
2024-01-25 17:04:38 +01:00
Hans-Christoph Steiner
d6aa3caaca
scanner: test of --refresh controls triggering a refresh
2024-01-25 14:03:46 +01:00
Hans-Christoph Steiner
1d9ec42758
scanner: update test counts based on new default rules
...
The new rules announce more things.
2024-01-25 12:31:05 +01:00
Hans-Christoph Steiner
681392d8c2
scanner: script to update default rules from SUSS
2024-01-25 11:51:22 +01: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
3f50372d8d
config: test cases for serverwebroot: with string and list
2024-01-22 22:11:49 +01:00
Hans-Christoph Steiner
dc7170e709
gitlab-ci: install biplist if available, otherwise skip test_parse_ipa
...
Fedora does not have a biplist package.
2024-01-11 16:02:06 +01:00
Hans-Christoph Steiner
6eee83db47
run black on new .ipa test cases
2024-01-11 16:02:06 +01:00
Michael Pöhn
8b5a61bb25
⛰️ make ipa related test cases more robust
2024-01-11 12:02:53 +01:00
Michael Pöhn
7211e9f9b4
🍲 add unit test for update.scan_repo_for_ipas
2024-01-11 11:34:21 +01:00
Michael Pöhn
995118bcd2
🥔 add strapped IPA file and test for parse_ipa
2024-01-11 11:34:21 +01:00
Michael Pöhn
c288317530
🪨 version string conversion: error handling+tests
2024-01-11 11:34:21 +01:00
Hans-Christoph Steiner
0849e664e7
metadata_v0: use git rev-parse
instead of git describe
2024-01-09 14:54:38 +01:00
Hans-Christoph Steiner
96fc49d7fc
lint: check syntax of countryCode: fields for mirrors
2024-01-09 09:32:37 +00:00
Hans-Christoph Steiner
4511da68b9
lint: support linting config files
2024-01-09 09:32:37 +00:00
Hans-Christoph Steiner
15b983f48d
handle all cases of @ in srclibs
...
expands on fdroidserver!1422
2024-01-07 10:50:29 +01:00
Hans-Christoph Steiner
8c8b9021f5
tests/run-tests: disable nightly.TestCase on non-Linux until its ported
2023-12-15 09:15:19 +01:00
Hans-Christoph Steiner
52f27aea75
tests/run-tests: temp disable git mirror test on non-Linux
...
I looked into this but couldn't figure it out. It is the only failing
test on macOS, so it seemed worth just adding this single quirk for now.
2023-12-15 09:15:19 +01:00
Hans-Christoph Steiner
865673964e
gitlab-ci: enable shellcheck on tests/run-tests
2023-12-15 08:40:01 +01:00
Hans-Christoph Steiner
45d1363a0e
tests/run-tests: use $sed var for all calls that need GNU sed
...
FreeBSD, macOS, and others come with BSD sed, which does not support all
the things that GNU sed does. Also, BSD rmdir does not have any extended
options like --ignore-fail-on-non-empty.
2023-12-13 22:30:19 +01:00
Hans-Christoph Steiner
e2949cbd61
port to looseversion
2023-12-08 10:48:01 +01:00
Andrew Gunnerson
679ba6f552
Add support for Python 3.12
...
Python 3.12 completely removed the builtin `distutils` module. This
commit replaces its use with the `packaging` package, which is an
external dependency, but maintained by the Python developers.
Signed-off-by: Andrew Gunnerson <accounts+gitlab@chiller3.com>
2023-12-07 18:15:05 -05:00