File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -303,14 +303,12 @@ Commands
303303 - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
304304 - source ~/travis-perl-helpers/init
305305 - build-perl
306- - local-lib cache # makes a local::lib from cached
306+ - local-lib cache # makes a local::lib symlinked to cache
307307 - perl -V
308308 - build-dist
309309 - cd $BUILD_DIR
310310 install:
311311 - cpan-install --deps # installs prereqs, including recommends
312- before_cache:
313- - local-lib-cachestore # saves for local::lib next time
314312
315313 Alternatively, this will also work and the ` build-perl ` will do the
316314 ` local-lib ` step for you:
Original file line number Diff line number Diff line change @@ -27,14 +27,10 @@ set -e
2727if [ " $1 " == " use" ]; then
2828 perlbrew lib create " $full_version "
2929 perlbrew use " $full_version "
30- mkdir -p " $perlbrew_location "
31- cp -pr " $cache_location " /* " $perlbrew_location "
32- elif [ " $1 " == " store" ]; then
33- id
34- echo " BEFORE" ; find " $perlbrew_location " " $cache_location " -ls
35- mkdir -p " $cache_location "
36- cp -pr " $perlbrew_location " /* " $cache_location "
37- echo " AFTER" ; find " $cache_location " -ls
30+ rm -rf " $perlbrew_location "
31+ ln -s " $cache_location " " $perlbrew_location "
32+ [ -n " $TRAVIS_PERL_DEBUG " ] && \
33+ (id; echo " ON USE" ; find " $perlbrew_location " " $cache_location " -ls)
3834else
3935 echo " Unknown arg '$1 '"
4036 exit 1
Original file line number Diff line number Diff line change @@ -53,10 +53,6 @@ function local-lib {
5353 eval " $( " $HELPERS_ROOT /bin/local-lib" " $@ " ) "
5454}
5555
56- function local-lib-cachestore {
57- $HELPERS_ROOT /bin/local-lib-cache store
58- }
59-
6056function build-perl {
6157 local TRAVIS_PERL_VERSION=" $TRAVIS_PERL_VERSION "
6258 if [[ ( " $TRAVIS_PERL_VERSION " =~ ^5\. 6[.-] || \
You can’t perform that action at this time.
0 commit comments