Skip to content

Commit

Permalink
tweaked setup soem more
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Nov 17, 2011
1 parent 571b241 commit 416464b
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 10 deletions.
9 changes: 9 additions & 0 deletions tests/travis_doctrine_dbal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

git submodule update --init --recursive

php $DIR/generate_doctrine_dbal_fixture.php

php $DIR/vendor/vendors_doctrine_dbal.php
13 changes: 3 additions & 10 deletions tests/travis_jackrabbit.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
#!/bin/bash

git submodule update --init --recursive
wget http://s3-eu-west-1.amazonaws.com/patched-jackrabbit/jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar
java -jar jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar&
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo "Waiting until Jackrabbit is ready on port 8080"
while [[ -z `curl -s 'http://localhost:8080' ` ]]
do
echo -n "."
sleep 2s
done
git submodule update --init --recursive

echo "Jackrabbit is up"
$DIR/vendor/vendors_jackrabbit.sh
23 changes: 23 additions & 0 deletions tests/vendor/vendors_doctrine_dbal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env php
<?php

set_time_limit(0);

$vendorDir = __DIR__;
$deps = array(
array('doctrine-common', 'http://github.com/doctrine/common.git', 'origin/master'),
array('doctrine-dbal', 'http://github.com/doctrine/dbal.git', 'origin/master'),
);

foreach ($deps as $dep) {
list($name, $url, $rev) = $dep;

echo "> Installing/Updating $name\n";

$installDir = $vendorDir.'/'.$name;
if (!is_dir($installDir)) {
system(sprintf('git clone -q %s %s', escapeshellarg($url), escapeshellarg($installDir)));
}

system(sprintf('cd %s && git fetch -q origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
}
21 changes: 21 additions & 0 deletions tests/vendor/vendors_jackrabbit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR

JAR=jackrabbit-standalone-2.3.1-jackalope-SNAPSHOT.jar

if [ ! -f "$DIR/$JAR" ]; then
wget http://s3-eu-west-1.amazonaws.com/patched-jackrabbit/$JAR
fi

java -jar $DIR/$JAR&

echo "Waiting until Jackrabbit is ready on port 8080"
while [[ -z `curl -s 'http://localhost:8080' ` ]]
do
echo -n "."
sleep 2s
done

echo "Jackrabbit is up"

0 comments on commit 416464b

Please sign in to comment.