Commit Graph

42 Commits

Author SHA1 Message Date
Floris Bruynooghe 0b810d7d65 Run CI with -Dwarnings
This runs all CI jobs with -Dwarnings, turning warnings into errors
for CI.

This is useful since we run rustfmt and clippy on CI on stable rust,
while the builds and tests run with a specific older rustc.  The
latter is also used for local development usually since it is encoded
in the rust-toolchain file.  This warnings in clippy jobs of stable
rust would often go unnoticed, however stable rust usually finds more
genuine issues than the older compiler we use.
2021-12-28 13:51:21 +01:00
Floris Bruynooghe 6859b651a8 Add some more caching to CI
Use cacing in a few more places, replace the manual caching by the
action to simplify.
2021-12-28 13:35:17 +01:00
Hocuri b50f211c28 Fix benchmark compile errors (#2881)
* Fix benchmark compile errors

* Also check bench code during CI
2021-12-09 22:52:53 +01:00
link2xt 0d62069b67 python: add mypy support and some type hints
`deltachat.const` module now defines `__getattr__` and `__dir__` as
suggested by https://www.python.org/dev/peps/pep-0562/
mypy detects that `__getattr__` is defined and does not show errors
for `DC_*` constants which cannot be detected statically.
mypy is added to `tox.ini`, so type check can be run with `tox -e mypy`.
2021-11-14 11:06:44 +03:00
link2xt 30e616f74f Increase MSRV to 1.51.0 and cargo update 2021-10-09 12:08:07 +03:00
link2xt 4ef80aaea5 ci: update Rust and Python versions used for testing
- Use latest stable for rustfmt and clippy.
- Update Rust in rust-toolchain and coredeps Docker container to 1.54.0
  and test against it.
- Test against 1.48.0 to ensure libdeltachat can be compiled with Debian
  bullseye "rustc" and "cargo".
2021-08-07 14:22:54 +03:00
link2xt 09280508bc ci: run python tests on github workers 2021-05-16 16:30:40 +03:00
link2xt ffd00978e9 github actions: build windows repl exe 2021-05-08 18:52:01 +03:00
link2xt f52c23d1c7 ci: remove CIRCLE_* environment variables from scripts
Instead, allow specifying free-form BUILD_ID from the command line.

scripts/remote_python_packaging.sh still uses CIRCLE_ variables to avoid
changing working CircleCI config.
2021-05-02 15:02:30 +03:00
link2xt 949e671d9c ci: fail on cargo check warnings 2021-04-26 01:11:32 +03:00
link2xt a4b14c6b98 ci: update configs to use scripts from scripts/ directory 2021-04-18 21:57:04 +03:00
link2xt 4d2ac5a3a2 ci: switch to v2 of actions/checkout 2021-04-11 14:45:27 +03:00
link2xt 146db48c35 ci: use DCC_NEW_TMP_EMAIL for remote python tests 2021-04-11 14:45:27 +03:00
link2xt ce4675e9f7 ci: move remote python tests from CircleCI to GitHub Actions 2021-04-11 14:45:27 +03:00
link2xt a698a8dd84 Update to Rust 1.50
Also run rustfmt, fix new clippy warnings.
2021-03-01 16:48:33 +03:00
Floris Bruynooghe b31becea2b Only document main crate for now
We don't really have docs in the other crates yet, and there's a
naming conflict between deltachat and deltachat_ffi that needs to
sorted to build both.  But deltachat_ffi is still documented with
doxygen for now so there's no need to sort this now.
2021-01-22 18:42:13 +01:00
Floris Bruynooghe c4ebb0a31e Add rustdoc to CI and fix some doc comments
This fixes a bunch of doc comments and also adds the run to CI so that
failures get caught early.
2021-01-22 18:42:13 +01:00
Floris Bruynooghe 2435803fa3 Update toolchain in all our files
We need to do more than just update rust-toolchain sadly.
2021-01-19 11:20:33 +01:00
Alexander Krotov 498880d874 ci: disable macOS 2020-09-19 03:19:48 +03:00
Floris Bruynooghe ee27c7d9d4 Run clippy on tests and examples 2020-09-05 18:13:16 +02:00
B. Petersen 36927d7c6b skip the always-failing tests 2020-08-18 13:17:49 +02:00
Alexander Krotov a3ecbb3809 ci: test REPL with cargo check 2020-08-07 15:58:29 +03:00
Alexander Krotov 6594fdf33a ci: allow nightly runs to fail 2020-07-22 19:57:17 +03:00
Alexander Krotov 3bde37eabf ci: replace deprecated --workspace with --all 2020-07-20 13:06:58 +02:00
Alexander Krotov 632416cf58 ci: check all packages in the workspace 2020-07-20 13:06:58 +02:00
Alexander Krotov 1c73021d77 Update rust toolchain to 1.45.0 2020-07-17 01:08:32 +03:00
dignifiedquire 1f2087190e ci(github): dont build all branches on push 2020-06-09 13:42:40 +02:00
dignifiedquire 52e74c241f update pipeline name 2020-06-09 13:14:55 +02:00
dignifiedquire 3fa69c1852 fixup: ci 2020-06-09 13:10:25 +02:00
dignifiedquire b3074f854e remove beta from matrix 2020-06-09 13:07:56 +02:00
dignifiedquire 95c5128d9f fixup: ci 2020-06-09 13:07:18 +02:00
dignifiedquire dc17006b16 fixup: ci 2020-06-09 13:05:21 +02:00
dignifiedquire e4a4c230fe fixup: ci 2020-06-09 13:02:17 +02:00
dignifiedquire f56a4450f3 switch rust tests to github ci 2020-06-09 12:59:53 +02:00
dignifiedquire 913db3b958 ci(github): update toolchain 2020-06-09 12:55:25 +02:00
dignifiedquire 0ead27a05b update toolchain 2020-03-22 22:33:07 +01:00
dignifiedquire c9742bb6ea update toolchain for gh actions 2020-03-22 22:13:02 +01:00
Alexander Krotov 489e5111ac GitHub actions: check all packages, examples, tests and features 2020-02-11 02:09:47 +03:00
Simon Laux 775c36bb65 wip move some ci tasks to gh-actions (#998)
* add-action-rs-clippy-action

just to try this action out

* add --all argument

* rm --all argument again

* add cargo check and fmt

* disable circle ci counterparts(fetch, clippy, fmt)
2019-12-10 23:26:42 +01:00
holger krekel 863a70b8fc new clean try to get circle-ci to work, disable and move gh actions to ci_scripts folder 2019-11-22 12:28:19 +01:00
dignifiedquire 89a4b6fee5 update github actions 2019-11-22 12:28:19 +01:00
Friedel Ziegelmayer d330d890c0 setup minimal github action
Just so we can experiment with it on branches
2019-11-12 14:31:38 +01:00