mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +03:00
Compare commits
20 Commits
v2.2.0
...
ci/python-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ef3a091fe | ||
|
|
977e3e08d7 | ||
|
|
bb23e1487d | ||
|
|
30783adef2 | ||
|
|
a2c585c7a5 | ||
|
|
ff331061a0 | ||
|
|
77cb0276a6 | ||
|
|
2747939b52 | ||
|
|
dfb2ebb533 | ||
|
|
4c579e6cf6 | ||
|
|
cc1d520580 | ||
|
|
c7686e0a97 | ||
|
|
d41bcccd41 | ||
|
|
3c1a4ebfe0 | ||
|
|
361f14bffe | ||
|
|
939ca7f7d3 | ||
|
|
cdacf6a40f | ||
|
|
feb4dfc3af | ||
|
|
8c13771d6c | ||
|
|
5c3e1a6593 |
@@ -12,7 +12,7 @@ restore-workspace: &restore-workspace
|
|||||||
restore-cache: &restore-cache
|
restore-cache: &restore-cache
|
||||||
restore_cache:
|
restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
- cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
||||||
- repo-source-{{ .Branch }}-{{ .Revision }}
|
- repo-source-{{ .Branch }}-{{ .Revision }}
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
@@ -23,20 +23,9 @@ commands:
|
|||||||
steps:
|
steps:
|
||||||
- *restore-workspace
|
- *restore-workspace
|
||||||
- *restore-cache
|
- *restore-cache
|
||||||
- setup_remote_docker:
|
|
||||||
docker_layer_caching: true
|
|
||||||
# TODO: move into image
|
|
||||||
- run:
|
|
||||||
name: Install Docker client
|
|
||||||
command: |
|
|
||||||
set -x
|
|
||||||
VER="18.09.2"
|
|
||||||
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
|
|
||||||
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
|
|
||||||
mv /tmp/docker/* /usr/bin
|
|
||||||
- run:
|
- run:
|
||||||
name: Test (<< parameters.target >>)
|
name: Test (<< parameters.target >>)
|
||||||
command: TARGET=<< parameters.target >> ci/run.sh
|
command: TARGET=<< parameters.target >> ci_scripts/run-rust-test.sh
|
||||||
no_output_timeout: 15m
|
no_output_timeout: 15m
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -52,7 +41,7 @@ jobs:
|
|||||||
command: cargo generate-lockfile
|
command: cargo generate-lockfile
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
- cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
||||||
- run: rustup install $(cat rust-toolchain)
|
- run: rustup install $(cat rust-toolchain)
|
||||||
- run: rustup default $(cat rust-toolchain)
|
- run: rustup default $(cat rust-toolchain)
|
||||||
- run: rustup component add --toolchain $(cat rust-toolchain) rustfmt
|
- run: rustup component add --toolchain $(cat rust-toolchain) rustfmt
|
||||||
@@ -61,13 +50,14 @@ jobs:
|
|||||||
- run: cargo fetch
|
- run: cargo fetch
|
||||||
- run: rustc +stable --version
|
- run: rustc +stable --version
|
||||||
- run: rustc +$(cat rust-toolchain) --version
|
- run: rustc +$(cat rust-toolchain) --version
|
||||||
- run: rm -rf .git
|
# make sure this git repo doesn't grow too big
|
||||||
|
- run: git gc
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: /mnt
|
root: /mnt
|
||||||
paths:
|
paths:
|
||||||
- crate
|
- crate
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
key: cargo-v2-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
||||||
paths:
|
paths:
|
||||||
- "~/.cargo"
|
- "~/.cargo"
|
||||||
- "~/.rustup"
|
- "~/.rustup"
|
||||||
@@ -102,7 +92,7 @@ jobs:
|
|||||||
- run: cargo fetch
|
- run: cargo fetch
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
name: Test
|
||||||
command: TARGET=x86_64-apple-darwin ci/run.sh
|
command: TARGET=x86_64-apple-darwin ci_scripts/run-rust-test.sh
|
||||||
|
|
||||||
test_x86_64-unknown-linux-gnu:
|
test_x86_64-unknown-linux-gnu:
|
||||||
executor: default
|
executor: default
|
||||||
@@ -124,18 +114,18 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
build_test_docs_wheel:
|
build_test_docs_wheel:
|
||||||
machine: True
|
docker:
|
||||||
steps:
|
- image: deltachat/coredeps
|
||||||
- checkout
|
environment:
|
||||||
# - run: docker pull deltachat/doxygen
|
|
||||||
- run: docker pull deltachat/coredeps
|
|
||||||
- run:
|
|
||||||
name: build docs, run tests and build wheels
|
|
||||||
command: ci_scripts/ci_run.sh
|
|
||||||
environment:
|
|
||||||
TESTS: 1
|
TESTS: 1
|
||||||
DOCS: 1
|
DOCS: 1
|
||||||
|
working_directory: /mnt/crate
|
||||||
|
steps:
|
||||||
|
- *restore-workspace
|
||||||
|
- *restore-cache
|
||||||
|
- run:
|
||||||
|
name: build docs, run tests and build wheels
|
||||||
|
command: ci_scripts/run-python.sh
|
||||||
- run:
|
- run:
|
||||||
name: copying docs and wheels to workspace
|
name: copying docs and wheels to workspace
|
||||||
command: |
|
command: |
|
||||||
@@ -143,7 +133,6 @@ jobs:
|
|||||||
# cp -av docs workspace/c-docs
|
# cp -av docs workspace/c-docs
|
||||||
cp -av python/.docker-tox/wheelhouse workspace/
|
cp -av python/.docker-tox/wheelhouse workspace/
|
||||||
cp -av python/doc/_build/ workspace/py-docs
|
cp -av python/doc/_build/ workspace/py-docs
|
||||||
|
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: workspace
|
root: workspace
|
||||||
paths:
|
paths:
|
||||||
@@ -176,15 +165,16 @@ workflows:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
jobs:
|
jobs:
|
||||||
- build_test_docs_wheel
|
- cargo_fetch
|
||||||
|
- build_test_docs_wheel:
|
||||||
|
requires:
|
||||||
|
- cargo_fetch
|
||||||
- upload_docs_wheels:
|
- upload_docs_wheels:
|
||||||
requires:
|
requires:
|
||||||
- build_test_docs_wheel
|
- build_test_docs_wheel
|
||||||
- cargo_fetch
|
|
||||||
- rustfmt:
|
- rustfmt:
|
||||||
requires:
|
requires:
|
||||||
- cargo_fetch
|
- cargo_fetch
|
||||||
|
|
||||||
- clippy:
|
- clippy:
|
||||||
requires:
|
requires:
|
||||||
- cargo_fetch
|
- cargo_fetch
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
# perform CI jobs on PRs and after merges to master.
|
|
||||||
# triggered from .circleci/config.yml
|
|
||||||
|
|
||||||
set -e -x
|
|
||||||
|
|
||||||
export BRANCH=${CIRCLE_BRANCH:-test7}
|
|
||||||
|
|
||||||
# run doxygen on c-source (needed by later doc-generation steps).
|
|
||||||
# XXX modifies the host filesystem docs/xml and docs/html directories
|
|
||||||
# XXX which you can then only remove with sudo as they belong to root
|
|
||||||
|
|
||||||
# XXX we don't do doxygen doc generation with Rust anymore, needs to be
|
|
||||||
# substituted with rust-docs
|
|
||||||
#if [ -n "$DOCS" ] ; then
|
|
||||||
# docker run --rm -it -v $PWD:/mnt -w /mnt/docs deltachat/doxygen doxygen
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# run everything else inside docker (TESTS, DOCS, WHEELS)
|
|
||||||
docker run -e DCC_PY_LIVECONFIG -e BRANCH -e TESTS -e DOCS \
|
|
||||||
--rm -it -v $(pwd):/mnt -w /mnt \
|
|
||||||
deltachat/coredeps ci_scripts/run_all.sh
|
|
||||||
|
|
||||||
@@ -36,20 +36,21 @@ if [ -n "$TESTS" ]; then
|
|||||||
rm -rf src/deltachat/__pycache__
|
rm -rf src/deltachat/__pycache__
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
# run tox
|
# run tox. The circle-ci project env-var-setting DCC_PY_LIVECONFIG
|
||||||
# XXX we don't run liveconfig tests because they hang sometimes
|
# allows running of "liveconfig" tests but for speed reasons
|
||||||
# see https://github.com/deltachat/deltachat-core-rust/issues/331
|
# we run them only for the highest python version we support
|
||||||
# unset DCC_PY_LIVECONFIG
|
|
||||||
|
|
||||||
tox --workdir "$TOXWORKDIR" -e lint,py35,py36,py37,auditwheels -- -k "not qr"
|
tox --workdir "$TOXWORKDIR" -e py37
|
||||||
tox --workdir "$TOXWORKDIR" -e py35,py36,py37 -- -k "qr"
|
unset DCC_PY_LIVECONFIG
|
||||||
|
tox --workdir "$TOXWORKDIR" -p4 -e lint,py35,py36,doc
|
||||||
|
tox --workdir "$TOXWORKDIR" -e auditwheels
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$DOCS" ]; then
|
# if [ -n "$DOCS" ]; then
|
||||||
echo -----------------------
|
# echo -----------------------
|
||||||
echo generating python docs
|
# echo generating python docs
|
||||||
echo -----------------------
|
# echo -----------------------
|
||||||
(cd python && tox --workdir "$TOXWORKDIR" -e doc)
|
# (cd python && tox --workdir "$TOXWORKDIR" -e doc)
|
||||||
fi
|
# fi
|
||||||
@@ -39,8 +39,4 @@ fi
|
|||||||
|
|
||||||
# Run all the test configurations:
|
# Run all the test configurations:
|
||||||
$CARGO_CMD $CARGO_SUBCMD $OPT
|
$CARGO_CMD $CARGO_SUBCMD $OPT
|
||||||
$CARGO_CMD $CARGO_SUBCMD $OPT_RELEASE
|
|
||||||
$CARGO_CMD $CARGO_SUBCMD $OPT_RELEASE_IGNORED
|
$CARGO_CMD $CARGO_SUBCMD $OPT_RELEASE_IGNORED
|
||||||
|
|
||||||
# Build the ffi lib
|
|
||||||
$CARGO_CMD $CARGO_SUBCMD $OPT_FFI_RELEASE
|
|
||||||
@@ -4,7 +4,7 @@ from deltachat import const
|
|||||||
from conftest import wait_configuration_progress, wait_msgs_changed
|
from conftest import wait_configuration_progress, wait_msgs_changed
|
||||||
|
|
||||||
|
|
||||||
class TestInCreation:
|
class TestOnlineInCreation:
|
||||||
def test_forward_increation(self, acfactory, data, lp):
|
def test_forward_increation(self, acfactory, data, lp):
|
||||||
ac1 = acfactory.get_online_configuring_account()
|
ac1 = acfactory.get_online_configuring_account()
|
||||||
ac2 = acfactory.get_online_configuring_account()
|
ac2 = acfactory.get_online_configuring_account()
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ deps =
|
|||||||
pytest-rerunfailures
|
pytest-rerunfailures
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
auditwheel
|
|
||||||
pdbpp
|
pdbpp
|
||||||
requests
|
requests
|
||||||
|
|
||||||
[testenv:auditwheels]
|
[testenv:auditwheels]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
deps = auditwheel
|
||||||
commands =
|
commands =
|
||||||
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ commands =
|
|||||||
[testenv:doc]
|
[testenv:doc]
|
||||||
basepython = python3.5
|
basepython = python3.5
|
||||||
deps =
|
deps =
|
||||||
sphinx==2.0.1
|
sphinx==2.2.0
|
||||||
breathe
|
breathe
|
||||||
|
|
||||||
changedir = doc
|
changedir = doc
|
||||||
|
|||||||
Reference in New Issue
Block a user