1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

ci: improve pipenv caching

This commit is contained in:
Tomas Susanka 2019-04-29 09:54:15 +02:00
parent 5f1586e049
commit 3909e727b0
2 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.attic/ .attic/
.cache/ .cache/
.venv/
.idea/ .idea/
.mypy_cache/ .mypy_cache/
.pytest_cache/ .pytest_cache/

View File

@ -1,9 +1,9 @@
variables: variables:
# Using git fetch is faster. # Using git fetch is faster
# See https://docs.gitlab.com/ce/user/project/pipelines/settings.html#git-strategy # See https://docs.gitlab.com/ce/user/project/pipelines/settings.html#git-strategy
GIT_STRATEGY: "fetch" GIT_STRATEGY: "fetch"
# Init submodules. # Init submodules
# See https://docs.gitlab.com/ee/ci/yaml/#git-submodule-strategy # See https://docs.gitlab.com/ee/ci/yaml/#git-submodule-strategy
GIT_SUBMODULE_STRATEGY: "recursive" GIT_SUBMODULE_STRATEGY: "recursive"
@ -12,9 +12,13 @@ variables:
# See https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning # See https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
GIT_DEPTH: "50" GIT_DEPTH: "50"
# run make paralel # Run `make` in parallel
MAKEFLAGS: "-j10" MAKEFLAGS: "-j10"
# Pipenv cache
PIPENV_VENV_IN_PROJECT: "true"
PIPENV_CACHE_DIR: ".cache/"
stages: stages:
- environment - environment
- prebuild - prebuild