Skip to content

Commit

Permalink
ci: improve pipenv caching
Browse files Browse the repository at this point in the history
  • Loading branch information
tsusanka committed May 24, 2019
1 parent 5f1586e commit 3909e72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.attic/
.cache/
.venv/
.idea/
.mypy_cache/
.pytest_cache/
Expand Down
10 changes: 7 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
variables:
# Using git fetch is faster.
# Using git fetch is faster
# See https://docs.gitlab.com/ce/user/project/pipelines/settings.html#git-strategy
GIT_STRATEGY: "fetch"

# Init submodules.
# Init submodules
# See https://docs.gitlab.com/ee/ci/yaml/#git-submodule-strategy
GIT_SUBMODULE_STRATEGY: "recursive"

Expand All @@ -12,9 +12,13 @@ variables:
# See https://docs.gitlab.com/ee/ci/yaml/#shallow-cloning
GIT_DEPTH: "50"

# run make paralel
# Run `make` in parallel
MAKEFLAGS: "-j10"

# Pipenv cache
PIPENV_VENV_IN_PROJECT: "true"
PIPENV_CACHE_DIR: ".cache/"

stages:
- environment
- prebuild
Expand Down

0 comments on commit 3909e72

Please sign in to comment.