Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SNAPS
apex
Commits
9adcc896
Commit
9adcc896
authored
Nov 04, 2015
by
Tim Rozet
Committed by
Gerrit Code Review
Nov 04, 2015
Browse files
Merge "adding --atime-preseve to try and fix caching"
parents
f4aab45f
e01b5340
Changes
1
Hide whitespace changes
Inline
Side-by-side
ci/build.sh
View file @
9adcc896
...
...
@@ -309,7 +309,7 @@ if [ ! -z ${BUILD_CACHE_URI} ]; then
POPULATE_CACHE
=
1
else
echo
"Unpacking cache file ..."
tar
-C
${
CACHE_TMP
}
/cache
-xvf
${
CACHE_TMP
}
/cache/
${
LOCAL_CACHE_ARCH_NAME
}
.tgz
tar
--atime-preserve
-C
${
CACHE_TMP
}
/cache
-xvf
${
CACHE_TMP
}
/cache/
${
LOCAL_CACHE_ARCH_NAME
}
.tgz
cp
${
CACHE_TMP
}
/cache/cache/.versions
${
BUILD_BASE
}
/.
set
+e
make
-C
${
BUILD_BASE
}
validate-cache
;
...
...
@@ -398,7 +398,7 @@ cp ${BUILD_BASE}/noarch/*.rpm ${BUILD_DIR}
if
[
$POPULATE_CACHE
-eq
1
]
;
then
if
[
!
-z
${
BUILD_CACHE_URI
}
]
;
then
echo
"Building cache ..."
tar
--dereference
-C
${
BUILD_BASE
}
-caf
${
BUILD_BASE
}
/
${
LOCAL_CACHE_ARCH_NAME
}
.tgz
${
CACHE_DIR
}
tar
--atime-preserve
--dereference
-C
${
BUILD_BASE
}
-caf
${
BUILD_BASE
}
/
${
LOCAL_CACHE_ARCH_NAME
}
.tgz
${
CACHE_DIR
}
echo
"Uploading cache
${
BUILD_CACHE_URI
}
/
${
REMOTE_CACHE_ARCH_NAME
}
"
${
REMOTE_ACCESS_METHD
}
-T
${
BUILD_BASE
}
/
${
LOCAL_CACHE_ARCH_NAME
}
.tgz
${
BUILD_CACHE_URI
}
/
${
REMOTE_CACHE_ARCH_NAME
}
.tgz
rm
${
BUILD_BASE
}
/
${
LOCAL_CACHE_ARCH_NAME
}
.tgz
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment