improve python caching

This commit is contained in:
dignifiedquire
2019-09-08 14:05:26 +02:00
committed by holger krekel
parent 37f854be3e
commit 5c3e1a6593

View File

@@ -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