Skip to content

Commit 0e5ae00

Browse files
committed
handle SPLITBUILD with separately cacheable dir
1 parent 8d58243 commit 0e5ae00

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
@@ -113,7 +113,8 @@ There are various environment variables that will control how a build is done.
113113
generation process if it has heavy dependencies, such as Dist::Zilla, and
114114
testing is being done on a freshly built perl.
115115

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

118119
Defaults to true.
119120

@@ -294,6 +295,7 @@ Commands
294295
cache:
295296
directories:
296297
- $HOME/.perlbrew-cache # keeps between builds here
298+
- $HOME/.perlbrew-cache-split # used by split builds
297299
perl:
298300
- "5.8.4@moo"
299301
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)