mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
reconfigure running of rust and python tests
This commit is contained in:
33
ci_scripts/run-python-test.sh
Executable file
33
ci_scripts/run-python-test.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Run Python functional test for Delta Chat core.
|
||||
#
|
||||
|
||||
set -e -x
|
||||
|
||||
# build the core library
|
||||
cargo build --release -p deltachat_ffi --target=$TARGET
|
||||
|
||||
# Statically link against libdeltachat.a.
|
||||
export DCC_RS_DEV=$(pwd)
|
||||
|
||||
cd python
|
||||
|
||||
# remove and inhibit writing PYC files
|
||||
rm -rf tests/__pycache__
|
||||
rm -rf src/deltachat/__pycache__
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
# run tox. The circle-ci project env-var-setting DCC_PY_LIVECONFIG
|
||||
# allows running of "liveconfig" tests but for speed reasons
|
||||
# we run them only for the highest python version we support
|
||||
|
||||
# we split out qr-tests run to minimize likelyness of flaky tests
|
||||
# (some qr tests are pretty heavy in terms of send/received
|
||||
# messages and async-imap's likely has concurrency problems,
|
||||
# eg https://github.com/async-email/async-imap/issues/4 )
|
||||
tox -e lint,py37 -- --reruns 3 -k "not qr"
|
||||
tox -e py37 -- --reruns 5 -k "qr"
|
||||
unset DCC_PY_LIVECONFIG
|
||||
tox -p4 -e lint,py35,py36,doc
|
||||
|
||||
Reference in New Issue
Block a user