Skip to content

Instantly share code, notes, and snippets.

@mfontani
Created February 18, 2011 22:55
Show Gist options
  • Save mfontani/834567 to your computer and use it in GitHub Desktop.
Save mfontani/834567 to your computer and use it in GitHub Desktop.
# scripts/capsule.sh
if [ -f 'dist.ini' ]; then
echo "Found dist.ini, using Dist::Zilla"
#dzil authordeps | cpanm
#cpanm --installdeps .
echo "Installing author deps" >> $logfile
dzil authordeps | cpanm >> $logfile 2>&1
echo "Installing dist deps" >> $logfile
dzil listdeps | cpanm >> $logfile 2>&1
echo "Launching dist tests" >> $logfile
HARNESS_VERBOSE=1 dzil test >> $logfile 2>&1
# lib/jitterbug/Builder
my $repo = $task->project->url . '.git';
{
debug("Cloning " . $task->commit->sha256 . " from $repo into $build_dir\n");
qx{git clone $repo $build_dir};
debug("Checking out " . $task->commit->sha256 . " from $repo into $build_dir\n");
my $sha = $task->commit->sha256;
qx{cd $build_dir ; git checkout $sha};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment