weblate/ci/setup-env
Michal Čihař 02dac17631 Standardize naming of CI variables
All are now called CI_* instead of DJANGO_*, DO_* and TRAVIS_*.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-11-12 11:33:35 +01:00

11 lines
403 B
Bash
Executable file
Vendored

#!/bin/sh
# Environment setup
set -e
set -x
mysql -e 'DROP DATABASE IF EXISTS weblate;'
mysql -e 'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
psql -c 'DROP DATABASE IF EXISTS weblate;' -U postgres
psql -c 'CREATE DATABASE weblate;' -U postgres
if [ -n "$CI_SELENIUM" ] ; then
curl -L https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
fi