Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
e3d8476b
Commit
e3d8476b
authored
1 year ago
by
Dmitry Ivanov
Committed by
Maksim Kaitmazian
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Disable caches for a while
parent
5ceb50e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!920
pgproto module
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pgproto/.gitlab-ci.yml
+30
-30
30 additions, 30 deletions
pgproto/.gitlab-ci.yml
with
30 additions
and
30 deletions
pgproto/.gitlab-ci.yml
+
30
−
30
View file @
e3d8476b
...
...
@@ -19,22 +19,22 @@ variables:
GIT_SUBMODULE_STRATEGY
:
recursive
RUST_BACKTRACE
:
full
before_script
:
# Gitlab CI caching is shit. So we implement it manually
-
|
# Restore cache
if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
echo "Skip restoring cache on the master branch"
elif git diff origin/"$CI_DEFAULT_BRANCH" "$CI_COMMIT_SHA" --submodule=short | grep '^[+-]Subproject commit'; then
echo "Skip restoring cache because submodule(s) changed"
elif [ -f "${CACHE_ARCHIVE}" ]; then
ci-log-section start "restore-cache" Restoring cache from ${CACHE_ARCHIVE} ...
tar -xf ${CACHE_ARCHIVE}
echo "Ok"
du -sh ${CACHE_PATHS} || true
ci-log-section end "restore-cache"
else
echo "No cache found"
fi
#
#
Gitlab CI caching is shit. So we implement it manually
#
- |
#
# Restore cache
#
if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
#
echo "Skip restoring cache on the master branch"
#
elif git diff origin/"$CI_DEFAULT_BRANCH" "$CI_COMMIT_SHA" --submodule=short | grep '^[+-]Subproject commit'; then
#
echo "Skip restoring cache because submodule(s) changed"
#
elif [ -f "${CACHE_ARCHIVE}" ]; then
#
ci-log-section start "restore-cache" Restoring cache from ${CACHE_ARCHIVE} ...
#
tar -xf ${CACHE_ARCHIVE}
#
echo "Ok"
#
du -sh ${CACHE_PATHS} || true
#
ci-log-section end "restore-cache"
#
else
#
echo "No cache found"
#
fi
lint-for-tests
:
stage
:
test
...
...
@@ -73,20 +73,20 @@ test-linux:
-
cargo clippy --version
-
cargo clippy -- --deny clippy::all
-
|
# Save cache
if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
ci-log-section start "save-cache" Saving cache to ${CACHE_ARCHIVE} ...
du -sh ${CACHE_PATHS} || true
TMPEXT=$RANDOM
tar -cf "${CACHE_ARCHIVE}.${TMPEXT}" ${CACHE_PATHS}
mv -f "${CACHE_ARCHIVE}.${TMPEXT}" "${CACHE_ARCHIVE}"
echo Ok
du -sh ${CACHE_ARCHIVE}
ci-log-section end "save-cache"
else
echo "Skip saving cache on a non-master branch"
fi
#
- |
#
# Save cache
#
if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
#
ci-log-section start "save-cache" Saving cache to ${CACHE_ARCHIVE} ...
#
du -sh ${CACHE_PATHS} || true
#
TMPEXT=$RANDOM
#
tar -cf "${CACHE_ARCHIVE}.${TMPEXT}" ${CACHE_PATHS}
#
mv -f "${CACHE_ARCHIVE}.${TMPEXT}" "${CACHE_ARCHIVE}"
#
echo Ok
#
du -sh ${CACHE_ARCHIVE}
#
ci-log-section end "save-cache"
#
else
#
echo "Skip saving cache on a non-master branch"
#
fi
test-mac-m1
:
extends
:
.test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment