diaspora/script/ci/build.sh
Eitan Adler 9b75f1a83e Remove non-portable bashisms from most of the scripts.
Only install.sh has any bashisms left. However, the bug
which prevented it from running on most systems (using
/bin/bash directly) has been fixed.
2012-11-04 22:41:01 +01:00

13 lines
397 B
Bash
Executable file

#!/bin/sh
# 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