mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
improve python caching
This commit is contained in:
committed by
holger krekel
parent
37f854be3e
commit
5c3e1a6593
@@ -15,6 +15,12 @@ restore-cache: &restore-cache
|
|||||||
- cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
- cargo-v1-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
||||||
- repo-source-{{ .Branch }}-{{ .Revision }}
|
- repo-source-{{ .Branch }}-{{ .Revision }}
|
||||||
|
|
||||||
|
restore-cache-python: &restore-cache-python
|
||||||
|
restore_cache:
|
||||||
|
keys:
|
||||||
|
- cargo-v1-python-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
|
||||||
|
- repo-source-{{ .Branch }}-{{ .Revision }}
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
test_target:
|
test_target:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -124,18 +130,19 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
build_test_docs_wheel:
|
build_test_docs_wheel:
|
||||||
machine: True
|
executor:
|
||||||
|
docker:
|
||||||
|
- image: deltachat/coredeps
|
||||||
|
working_directory: /mnt/crate
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- *restore-workspace
|
||||||
# - run: docker pull deltachat/doxygen
|
- *restore-cache-python
|
||||||
- run: docker pull deltachat/coredeps
|
|
||||||
- run:
|
- run:
|
||||||
name: build docs, run tests and build wheels
|
name: build docs, run tests and build wheels
|
||||||
command: ci_scripts/ci_run.sh
|
command: ci_scripts/ci_run.sh
|
||||||
environment:
|
environment:
|
||||||
TESTS: 1
|
TESTS: 1
|
||||||
DOCS: 1
|
DOCS: 1
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: copying docs and wheels to workspace
|
name: copying docs and wheels to workspace
|
||||||
command: |
|
command: |
|
||||||
@@ -143,7 +150,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:
|
||||||
@@ -152,9 +158,13 @@ jobs:
|
|||||||
- wheelhouse
|
- wheelhouse
|
||||||
|
|
||||||
upload_docs_wheels:
|
upload_docs_wheels:
|
||||||
machine: true
|
executor:
|
||||||
|
docker:
|
||||||
|
- image: deltachat/coredeps
|
||||||
|
working_directory: /mnt/crate
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- *restore-workspace
|
||||||
|
- *restore-cache-python
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: workspace
|
at: workspace
|
||||||
- run: pyenv global 3.5.2
|
- run: pyenv global 3.5.2
|
||||||
|
|||||||
Reference in New Issue
Block a user