SomberNight
b45c84f24f
remove the kivy gui
...
We now use the qml gui on Android, and haven't been maintaining
the kivy GUI for a while.
2 years ago
SomberNight
111a753dc2
ci: don't run unit tests on pypy
...
We never really supported pypy - the CI was running the tests there
just to see compatibility.
A few of the unit tests consistently hang, resulting in the whole
test runner timing out and wasting compute resources. Someone could
debug the hangs and try to fix them, but I don't have the time.
2 years ago
SomberNight
5a4b98a066
CI: don't run unit tests on "python:rc", looks like it's unmaintained
...
The "python:rc" tag on dockerhub has not been updated for 2+ years
and is still at 3.10.0rc2. Even 3.11 has been released for many months now.
see https://hub.docker.com/_/python/tags
2 years ago
SomberNight
1767d26de9
tests: make regtest tests somewhat faster by faster polling in e-x
...
using 4e66804dc0
on my machine, before-after:
Ran 9 tests in 495.865s
Ran 9 tests in 376.183s
2 years ago
SomberNight
e097a3f875
CI: add some task dependencies
...
run linter first, then tests, then binary builds
3 years ago
SomberNight
4cbb8399d2
CI: also run flake8-bugbear, as part of flake8
3 years ago
SomberNight
2be71c2dcc
windows README: update reference to libsecp256k1-0.dll to incl newer
...
related: https://github.com/spesmilo/electrum/pull/8185
3 years ago
SomberNight
f5eabaff55
ci: also run unit tests with PYTHONASYNCIODEBUG=1
...
This can reveal additional asyncio-related bugs,
and due to also enabling the full "debug mode", maybe more.
3 years ago
SomberNight
c4061f143b
CI: (trivial) make "Locale" task depend on same py version it uses
3 years ago
SomberNight
4f66afb8a8
refactor locale scripts
...
follow-up 000a3de571
3 years ago
SomberNight
4aa319e5c3
CI: exclude generated protobuf files from flake8
3 years ago
ghost43
5edd17724f
CI: bump available memory for unit tests (1G->2G) ( #8166 )
...
Tasks recently started spuriously getting killed with "Container errored with 'OOMKilled'".
Not sure what changed, but this seems like the easiest fix.
3 years ago
SomberNight
1a7634e615
cirrus CI: disable macOS builds, as no more intel-based mac workers
...
related https://cirrus-ci.org/blog/2022/11/08/sunsetting-intel-macos-instances/
3 years ago
SomberNight
feb75ec9e6
CI: AppImage build is failing with "Container errored with 'OOMKilled'"
...
"AppImage build" on the CI is failing with "Container errored with 'OOMKilled'" since 65ae281180
https://cirrus-ci.com/task/6506466559918080
https://cirrus-ci.com/task/6518283422662656
Apparently, when running in a Cirrus CI container, `nproc` returns the number of host CPUs,
instead of the number of cpus available to the container.
Opened upstream issue:
https://github.com/cirruslabs/cirrus-ci-docs/issues/1115
3 years ago
SomberNight
4a63ca2e1f
CI: only build arm64 qml apk, not both
...
the qml apk builds take too much time, and no one actually uses the arm32 apk from the CI
see discussion in https://github.com/spesmilo/electrum/pull/8050
3 years ago
SomberNight
4548351ffd
CI: rm redundant "populate_script" cache instructions
3 years ago
SomberNight
074ccdd072
CI: cache key should respect gitignore
...
otherwise when evaluating the cache key for the second cache within same task,
the first cache might side-effect it
3 years ago
SomberNight
54e22105b8
CI: cache more in Windows build
3 years ago
SomberNight
6f311c8930
appimage build: better caching, both locally and on CI
3 years ago
SomberNight
3b03bc9b29
CI: cache built *.dylib on macOS
...
note: the extra copies in make_osx.sh are needed because of the CI caching
(pyinstaller needs to see the .dylib's inside electrum/, e.g. when importing electrum during Analysis)
3 years ago
SomberNight
4a3bc2f8b9
CI: macOS *still* does not have sha256sum :(
3 years ago
SomberNight
39dbd9492c
CI: more aggressive cache invalidation
...
E.g. if we bump the python version, should not reuse the pip cache.
Easiest to invalidate cache if any build-specific file changes.
3 years ago
SomberNight
f8103163f7
CI: macOS does not have sha256sum
3 years ago
SomberNight
473dd08c04
CI: cache more
3 years ago
SomberNight
19d316f8e2
CI: rm obsolete "electrum_cache"
...
it's an empty folder.
3 years ago
SomberNight
ee8a20f7b6
CI: rename requirements-travis.txt
3 years ago
SomberNight
7328386413
CI: try to cache android apk builds
...
and build qml arm64 on every commit
3 years ago
SomberNight
01b5e3f8e0
flake8: enable more mandatory tests
3 years ago
SomberNight
7db396aad9
follow-up prev: indentations should not use tabs in *.py
...
re https://github.com/spesmilo/electrum/pull/8044
3 years ago
Sander van Grieken
922fa1adbc
ci: add QML Android CI builds for arm64 and arm32 architectures
...
conservatively only builds on tagged commits, or any commit on the ci-qml-beta branch
3 years ago
SomberNight
1cecd2c6e8
contrib: rename some shell scripts to have ".sh" extension
...
The extension gives formatting hints to some editors. (especially if they support .editorconfig)
3 years ago
SomberNight
0ac49ea8c4
cirrus CI build: fix docker context to make COPY instructions work
...
see https://cirrus-ci.org/guide/writing-tasks/#environment-variables :
> CIRRUS_DOCKER_CONTEXT: Docker build's context directory to use for Dockerfile as a CI environment. Defaults to project's root directory.
3 years ago
yanmaani
501c06559c
ci: make source-only tarballs in Cirrus
3 years ago
ThomasV
78b51b3f43
update cirrus make_apk command
4 years ago
SomberNight
5960072161
regtests: update electrumx
4 years ago
SomberNight
dd2f8541b7
bump min required Python version to 3.8
4 years ago
SomberNight
f02e3b9d99
cirrus ci: change cache key for pip dependencies
...
the cache should be considered stale if requirements.txt changes
4 years ago
Jeremy Rand
8ab97d7d40
Cirrus: Use hardcoded ElectrumX v1.15.0 in functional tests
4 years ago
Jeremy Rand
d79de7ac2e
Cirrus: Use VM instead of Docker for functional tests
4 years ago
SomberNight
b9295eda09
ci: only run coveralls script if ENV var is set (for token)
...
As the token is typically not available for pull requests.
4 years ago
SomberNight
8b9296654e
contrib/push_locale: start using crowdin v2 API (instead of v1)
...
-----
closes https://github.com/spesmilo/electrum/issues/6936
Note: if we used the python crowdin client (https://github.com/crowdin/crowdin-api-client-python ),
we would do something like this:
```
from crowdin_api import CrowdinClient
class MyCrowdinClient(CrowdinClient):
TOKEN = ...
client = MyCrowdinClient()
with open(locale_file_name, 'rb') as f:
resp = client.storages.add_storage(f)
storage_id = resp['data']['id']
client.source_files.update_file(projectId=crowdin_project_id, storageId=storage_id, fileId=crowdin_file_id)
client.translations.build_crowdin_project_translation(projectId=crowdin_project_id)
```
4 years ago
SomberNight
70d901b544
cirrus ci: push_locale: make sure gettext is installed
4 years ago
SomberNight
8ef2052a62
ci: coveralls: try to aggregate tasks/jobs into builds
...
see https://github.com/lemurheavy/coveralls-public/issues/1558
see https://github.com/cirruslabs/cirrus-ci-docs/issues/118#issuecomment-717680614
4 years ago
SomberNight
03547ac182
ci: fix coveralls for cirrus ci
4 years ago
JeremyRand
b1c4bb8914
Add Cirrus CI ( #7431 )
...
* Cirrus: Add Tox task
* Cirrus: Add Locale task
* Cirrus: Add Flake8 Task
* Cirrus: Add Regtest task
* Regtest: Flush stdout
Allows viewing output sooner.
* Regtest: Read process.stdout in text mode
Improves ability to quickly see output.
* Cirrus: Add Windows task
* Cirrus: Add Android task
* Cirrus: Add macOS task
* Cirrus: Add AppImage task
* Cirrus: Add tarball task
* Cirrus: Add Submodules task
* Android: remove superfluous cp/rm
* Add .dockerignore
Symlink to .gitignore.
4 years ago