Browse Source

Tweak connection pool config for travis

Isamu Mogi 9 years ago
parent
commit
ab143f52ad
1 changed files with 4 additions and 0 deletions
  1. 4 0
      frameworks/Haskell/spock/setup.sh

+ 4 - 0
frameworks/Haskell/spock/setup.sh

@@ -4,6 +4,10 @@ fw_depends stack
 
 sed -i 's|PG.connectHost     = "localhost"|PG.connectHost     = "'"${DBHOST}"'"|g' src/Main.hs
 
+if [ "$TRAVIS" = "true" ]; then
+    sed -i 's|PoolCfg 50 50 60|PoolCfg 20 25 60|g' src/Main.hs
+fi
+
 ${IROOT}/stack --allow-different-user build --install-ghc
 
 ${IROOT}/stack --allow-different-user exec spock-exe -- +RTS -A32m -N${MAX_THREADS} &