Compare commits

..

15 Commits

Author SHA1 Message Date
holger krekel
a3e95a3b9e try optimized -j settings 2019-11-12 23:40:20 +01:00
holger krekel
6953386d65 fix typo 2019-11-12 22:04:42 +01:00
holger krekel
12df95007b only -j1 works it seems 2019-11-12 21:17:23 +01:00
holger krekel
226caa4db6 -j 2 2019-11-12 21:01:40 +01:00
holger krekel
1966e873bd reduce concurrency to -j3 2019-11-12 20:38:37 +01:00
holger krekel
c202b6af3b don't use gh actions for now 2019-11-12 20:12:34 +01:00
holger krekel
59c92b17eb very slight change 2019-11-12 18:47:28 +01:00
dignifiedquire
ba878f431a .. 2019-11-12 18:36:04 +01:00
dignifiedquire
4dab7485ab .. 2019-11-12 18:35:50 +01:00
dignifiedquire
aec1ba40fe .. 2019-11-12 18:34:29 +01:00
dignifiedquire
b3f515f7f2 .. 2019-11-12 18:33:43 +01:00
dignifiedquire
56b80fe3bb .. 2019-11-12 18:33:11 +01:00
dignifiedquire
5b199e4bed .. 2019-11-12 18:32:15 +01:00
dignifiedquire
0bf8c3afde combine clippy and fmt 2019-11-12 18:31:36 +01:00
dignifiedquire
f835521d31 try manual 2019-11-12 18:30:27 +01:00
3 changed files with 32 additions and 52 deletions

View File

@@ -1,30 +0,0 @@
name: CI
on:
pull_request:
push:
env:
RUSTFLAGS: -Dwarnings
jobs:
build:
name: 3.7 python tests against core
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.x
architecture: x64
- run: bash ci_scripts/run-python.sh

View File

@@ -13,6 +13,7 @@ export TOXWORKDIR=.docker-tox
export PATH=/root/.cargo/bin:$PATH
cargo build --release -p deltachat_ffi
# cargo test --all --all-features
# Statically link against libdeltachat.a.
export DCC_RS_DEV=$(pwd)
@@ -21,27 +22,36 @@ export DCC_RS_DEV=$(pwd)
# needed by tox below.
export PATH=$PATH:/opt/python/cp35-cp35m/bin
export PYTHONDONTWRITEBYTECODE=1
pushd python
# prepare a clean tox run
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 rust's imap code likely has concurrency problems)
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "not qr"
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "qr"
unset DCC_PY_LIVECONFIG
#tox --workdir "$TOXWORKDIR" -p4 -e lint,py35,py36,doc
#tox --workdir "$TOXWORKDIR" -e auditwheels
pushd /bin
ln -s /opt/python/cp27-cp27m/bin/python2.7
ln -s /opt/python/cp36-cp36m/bin/python3.6
ln -s /opt/python/cp37-cp37m/bin/python3.7
popd
if [ -n "$TESTS" ]; then
pushd python
# prepare a clean tox run
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 rust's imap code likely has concurrency problems)
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "not qr"
tox --workdir "$TOXWORKDIR" -e py37 -- --reruns 3 -k "qr"
unset DCC_PY_LIVECONFIG
tox --workdir "$TOXWORKDIR" -p4 -e lint,py35,py36,doc
tox --workdir "$TOXWORKDIR" -e auditwheels
popd
fi
# if [ -n "$DOCS" ]; then
# echo -----------------------
# echo generating python docs

View File

@@ -32,9 +32,9 @@ if [[ $NORUN == "1" ]]; then
export CARGO_SUBCMD="build"
else
export CARGO_SUBCMD="test --all"
export OPT="${OPT} "
export OPT_RELEASE="${OPT_RELEASE} "
export OPT_RELEASE_IGNORED="${OPT_RELEASE} -- --ignored"
export OPT="-j1 ${OPT} "
export OPT_RELEASE="-j2 ${OPT_RELEASE} "
export OPT_RELEASE_IGNORED="-j2 ${OPT_RELEASE} -- --ignored"
fi
# Run all the test configurations: