Permalink
Browse files

include sqlite in deployer ci

Change-Id: I47d565295b348a7884dd7dd32fe37c6d70639094
  • Loading branch information...
1 parent a6e7ec0 commit d7ab1eb569ceb70c7916925d70b041a0e3d8cdf0 @pmenglund pmenglund committed Sep 14, 2012
@@ -66,6 +66,7 @@
<command>export PATH=$VCAP_RUBY19/bin:$PATH
GIT_REALPATH=`readlink -nf /var/vcap/packages/git`
+SQLITE_REALPATH=`readlink -nf $VCAP_SQLITE`
VCAP_RUBY19_REALPATH=`readlink -nf $VCAP_RUBY19`
DEPLOYER=$PWD/deployer
RAKE_SUPPORT_DIR=$PWD/rake
@@ -78,13 +79,15 @@ cat &lt;&lt;-EOT &gt; $TEST_RUNNER
set -o errexit
set -o nounset
export PATH=$VCAP_RUBY19_REALPATH/bin:$GIT_REALPATH/bin:$PATH
+export LIBRARY_PATH=$SQLITE_REALPATH/lib:$LIBRARY_PATH
+export C_INCLUDE_PATH=$SQLITE_REALPATH/include:$C_INCLUDE_PATH
cd /tmp/deployer
bundle install --local --path vendor/bundle --without development production
cd spec
bundle exec rake spec:functional:ci
EOT
-HANDLE=`$CREATE_CONTAINER $VCAP_RUBY19_REALPATH $GIT_REALPATH`
+HANDLE=`$CREATE_CONTAINER $VCAP_RUBY19_REALPATH $GIT_REALPATH $SQLITE_REALPATH`
$WARDEN_REPL -c &quot;
copy $HANDLE in $RAKE_SUPPORT_DIR /tmp
copy $HANDLE in $DEPLOYER /tmp
@@ -66,6 +66,7 @@
<command>export PATH=$VCAP_RUBY19/bin:$PATH
GIT_REALPATH=`readlink -nf /var/vcap/packages/git`
+SQLITE_REALPATH=`readlink -nf $VCAP_SQLITE`
VCAP_RUBY19_REALPATH=`readlink -nf $VCAP_RUBY19`
DEPLOYER=$PWD/deployer
RAKE_SUPPORT_DIR=$PWD/rake
@@ -78,13 +79,15 @@ cat &lt;&lt;-EOT &gt; $TEST_RUNNER
set -o errexit
set -o nounset
export PATH=$VCAP_RUBY19_REALPATH/bin:$GIT_REALPATH/bin:$PATH
+export LIBRARY_PATH=$SQLITE_REALPATH/lib:$LIBRARY_PATH
+export C_INCLUDE_PATH=$SQLITE_REALPATH/include:$C_INCLUDE_PATH
cd /tmp/deployer
bundle install --local --path vendor/bundle --without development production
cd spec
bundle exec rake spec:unit:ci
EOT
-HANDLE=`$CREATE_CONTAINER $VCAP_RUBY19_REALPATH $GIT_REALPATH`
+HANDLE=`$CREATE_CONTAINER $VCAP_RUBY19_REALPATH $GIT_REALPATH $SQLITE_REALPATH`
$WARDEN_REPL -c &quot;
copy $HANDLE in $RAKE_SUPPORT_DIR /tmp
copy $HANDLE in $DEPLOYER /tmp
@@ -127,4 +130,4 @@ rm -f $TEST_RUNNER
</hudson.plugins.rubyMetrics.rcov.RcovPublisher>
</publishers>
<buildWrappers/>
-</project>
+</project>

0 comments on commit d7ab1eb

Please sign in to comment.