2022-07-12 04:48:54 -04:00
|
|
|
# pull only for most of the use cases for cache
|
|
|
|
# only set "push" policy for the jobs under this file.
|
|
|
|
# The cache would be updated when files matched specified patterns changes.
|
|
|
|
|
2022-06-06 21:05:15 -04:00
|
|
|
.upload_cache_template:
|
|
|
|
stage: upload_cache
|
|
|
|
image: $ESP_ENV_IMAGE
|
|
|
|
|
2022-07-12 04:48:54 -04:00
|
|
|
upload-pip-cache:
|
2022-06-06 21:05:15 -04:00
|
|
|
extends:
|
|
|
|
- .upload_cache_template
|
2022-07-28 03:32:13 -04:00
|
|
|
- .before_script_minimal
|
2022-06-06 21:05:15 -04:00
|
|
|
- .rules:patterns:python-cache
|
2022-07-12 04:48:54 -04:00
|
|
|
tags:
|
|
|
|
- $GEO
|
|
|
|
- build
|
2022-06-06 21:05:15 -04:00
|
|
|
cache:
|
|
|
|
key: pip-cache
|
|
|
|
paths:
|
|
|
|
- .cache/pip
|
|
|
|
policy: push
|
|
|
|
script:
|
|
|
|
- rm -rf .cache/pip # clear old packages
|
2022-07-28 03:32:13 -04:00
|
|
|
- bash install.sh --enable-ci --enable-pytest
|
2022-07-12 04:48:54 -04:00
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
- GEO: [ 'shiny', 'brew' ]
|
2022-06-06 21:05:15 -04:00
|
|
|
|
2022-07-12 04:48:54 -04:00
|
|
|
upload-submodules-cache:
|
|
|
|
extends:
|
|
|
|
- .upload_cache_template
|
2022-07-28 03:32:13 -04:00
|
|
|
- .before_script_minimal
|
2022-07-12 04:48:54 -04:00
|
|
|
- .rules:patterns:submodule
|
2022-06-06 21:05:15 -04:00
|
|
|
tags:
|
2022-07-12 04:48:54 -04:00
|
|
|
- $GEO
|
2022-06-06 21:05:15 -04:00
|
|
|
- build
|
2022-07-12 04:48:54 -04:00
|
|
|
cache:
|
|
|
|
key: submodule-cache
|
|
|
|
paths:
|
|
|
|
- .cache/submodule_archives
|
|
|
|
policy: push
|
|
|
|
script:
|
2022-09-29 09:33:03 -04:00
|
|
|
# use the default gitlab server
|
|
|
|
- unset LOCAL_GITLAB_HTTPS_HOST
|
2022-07-12 04:48:54 -04:00
|
|
|
- rm -rf .cache/submodule_archives # clear old submodule archives
|
2022-07-28 03:32:13 -04:00
|
|
|
- add_gitlab_ssh_keys
|
2022-07-12 04:48:54 -04:00
|
|
|
- fetch_submodules
|
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
- GEO: [ 'shiny', 'brew' ]
|