From 2f376030db840d2d36e9f44323ddc3fa46086246 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Sun, 11 Sep 2011 20:21:32 -0400 Subject: [PATCH] Add scripts submodule --- .gitmodules | 3 +++ install-all.sh | 53 -------------------------------------------------- scripts | 1 + 3 files changed, 4 insertions(+), 53 deletions(-) create mode 100644 .gitmodules delete mode 100755 install-all.sh create mode 160000 scripts diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..91468aacc --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "scripts"] + path = scripts + url = git://github.com/yesodweb/scripts.git diff --git a/install-all.sh b/install-all.sh deleted file mode 100755 index 0617f778e..000000000 --- a/install-all.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -e - -# allow a CABAL env var to override -CABAL=${CABAL:-cabal} -CONFIGURE_OPTS="--ghc-options=-Wall --ghc-options=-Werror" - -# install testing dependencies -$CABAL install HUnit QuickCheck 'hspec >= 0.6.1 && < 0.7' 'file-location >= 0.4 && < 0.5' - -# also pool and persistent -PACKAGES="persistent-template persistent-sqlite persistent-postgresql persistent-mongoDB" - -cabal_install() { - echo "Installing $1..." - - ( - cd $1 - - if [ "$3" = "--clean" ]; then - $CABAL clean - fi - - if ! $CABAL configure $CONFIGURE_OPTS; then - $CABAL install --only-dependencies - $CABAL configure $CONFIGURE_OPTS - fi - $CABAL build - - if [ "$2" = "test" ]; then - $CABAL configure --enable-tests - $CABAL build - $CABAL test - fi - - $CABAL check - $CABAL haddock --executables - ./Setup.lhs install - cd .. - ) -} - -# required for persistent -cabal_install "pool" "test" $@ -# don't run the persistent tests right now -cabal_install "persistent" "" $@ - -for package in $PACKAGES -do - cabal_install $package "test" -done - -# now run the persistent tests -cabal_install "persistent" diff --git a/scripts b/scripts new file mode 160000 index 000000000..00e2390f2 --- /dev/null +++ b/scripts @@ -0,0 +1 @@ +Subproject commit 00e2390f2eb601d869e97fc2838cc17f63f0e343