Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (23 sloc) 0.813 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/bin/sh -x

perlbrew uninstall cpancover
perlbrew install perl-5.16.2 --as cpancover -j 8
export PATH=$PERLBREW_ROOT/perls/cpancover/bin:$PATH
rm -rf ~/.cpanm
rm -rf ~/cpancover
cpan App::cpanminus
cpanm .
cpanm App::cpanoutdated
cpan-outdated | cpanm
perl utils/install_modules
CPANCOVER_WORKERS=8 perl utils/cpanmcover
rm -r /home/pjcj/cpancover/modules/Archive-Extract-0.60/cover_db
rm -r /home/pjcj/cpancover/modules/Test-LeakTrace-0.14/cover_db
cpancover -directory ~/cpancover/modules -outputdir ~/cpancover/results -outputfile index.html -report html_basic -nocollect
find ~/cpancover/results -type f -exec gzip -9 {} \;
chmod -R o=g ~/cpancover/results
www=/usr/share/nginx/www
new=$www/`date +%F`
sudo mv $new $new.$$
sudo cp -a ~/cpancover/results $new
sudo rm $www/latest
sudo ln -s $new $www/latest
Something went wrong with that request. Please try again.