diaspora/script/ci/build.sh
2012-09-23 19:00:52 +02:00

13 lines
399 B
Bash
Executable file

#!/bin/bash
# Create a database.yml for the right database
echo "Setting up database.yml for $DB"
cp config/database.yml.example config/database.yml
if [ "$DB" = "postgres" ]; then
sed -i 's/*choose/*postgres_travis/' config/database.yml
fi
command="bundle exec rake --trace ci:travis:${BUILD_TYPE}"
exec xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1280x1024x8" $command