Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
e378d602
Unverified
Commit
e378d602
authored
Feb 16, 2021
by
Nicolas Hug
Committed by
GitHub
Feb 16, 2021
Browse files
Restore cache in circleCI (#3401)
* restore cache * Trigger CI again to see if cache is hit
parent
61e00d58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
.circleci/config.yml
.circleci/config.yml
+11
-1
.circleci/config.yml.in
.circleci/config.yml.in
+11
-1
No files found.
.circleci/config.yml
View file @
e378d602
...
@@ -513,12 +513,17 @@ jobs:
...
@@ -513,12 +513,17 @@ jobs:
name
:
Generate cache key
name
:
Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
# This will refresh cache on Sundays, nightly build should generate new cache.
command
:
echo "$(date +"%Y-%U")" > .circleci-weekly
command
:
echo "$(date +"%Y-%U")" > .circleci-weekly
-
restore_cache
:
keys
:
-
env-v3-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
-
run
:
-
run
:
name
:
Setup
name
:
Setup
command
:
docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
command
:
docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
-
save_cache
:
-
save_cache
:
key
:
env-v
2
-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
key
:
env-v
3
-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
paths
:
paths
:
-
conda
-
conda
...
@@ -587,6 +592,11 @@ jobs:
...
@@ -587,6 +592,11 @@ jobs:
name
:
Generate cache key
name
:
Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
# This will refresh cache on Sundays, nightly build should generate new cache.
command
:
echo "$(date +"%Y-%U")" > .circleci-weekly
command
:
echo "$(date +"%Y-%U")" > .circleci-weekly
-
restore_cache
:
keys
:
-
env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
-
run
:
-
run
:
name
:
Setup
name
:
Setup
command
:
.circleci/unittest/windows/scripts/setup_env.sh
command
:
.circleci/unittest/windows/scripts/setup_env.sh
...
...
.circleci/config.yml.in
View file @
e378d602
...
@@ -513,12 +513,17 @@ jobs:
...
@@ -513,12 +513,17 @@ jobs:
name: Generate cache key
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- env-v3-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
- run:
name: Setup
name: Setup
command: docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
command: docker run -e PYTHON_VERSION -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/setup_env.sh
- save_cache:
- save_cache:
{% raw %}
{% raw %}
key: env-v
2
-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
key: env-v
3
-linux-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/linux/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
{% endraw %}
paths:
paths:
- conda
- conda
...
@@ -587,6 +592,11 @@ jobs:
...
@@ -587,6 +592,11 @@ jobs:
name: Generate cache key
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- env-v1-windows-{{ arch }}-py<< parameters.python_version >>-{{ checksum ".circleci/unittest/windows/scripts/environment.yml" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
- run:
name: Setup
name: Setup
command: .circleci/unittest/windows/scripts/setup_env.sh
command: .circleci/unittest/windows/scripts/setup_env.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment