Created
February 18, 2011 22:55
-
-
Save mfontani/834567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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