Skip to content

Commit cfeb321

Browse files
committed
handle SPLITBUILD with separately cacheable dir
1 parent ecd145e commit cfeb321

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ There are various environment variables that will control how a build is done.
116116
generation process if it has heavy dependencies, such as Dist::Zilla, and
117117
testing is being done on a freshly built perl.
118118

119-
Makes a local::lib that is blank.
119+
Makes a local::lib that symlinks to `${LOCAL_LIB_CACHE}-split`. If you
120+
give that as a cached directory, it will make your builds go faster.
120121

121122
Defaults to true.
122123

@@ -297,6 +298,7 @@ Commands
297298
cache:
298299
directories:
299300
- $HOME/.perlbrew-cache # keeps between builds here
301+
- $HOME/.perlbrew-cache-split # used by split builds
300302
perl:
301303
- "5.8.4@moo"
302304
before_install:

bin/local-lib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ source "$HELPERS_ROOT/lib/debug.sh"
44

55
declare -a ll_roots
66
if [ -z "$1" ]; then
7-
ll_roots=("$(mktemp -d -t local-lib-XXXXXX)")
7+
ll_roots=("${LOCAL_LIB_CACHE}-split") # can cache
8+
[ -n "$TRAVIS_PERL_DEBUG" ] && \
9+
(echo "ON SPLITDIR"; find "${LOCAL_LIB_CACHE}-split" -ls) 1>&2
810
else
911
for lib; do
1012
if [ "$lib" == "cache" ]; then

0 commit comments

Comments
 (0)