Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f080f1def2
Fetching contributors…

Cannot retrieve contributors at this time

executable file 52 lines (45 sloc) 1.068 kb
#!/bin/sh
# Git repo of the Redmine
gem update --system 1.6.2
# Prepare Redmine
git clone --depth=100 --quiet $MAIN_REPO $TARGET_DIR
cd $TARGET_DIR
git checkout $REDMINE_GIT_TAG
git submodule update --init --recursive
# Copy over the already downloaded plugin
cp -r ~/builds/*/$REPO_NAME vendor/plugins/$PLUGIN_DIR
#export BUNDLE_GEMFILE=$TARGET_DIR/Gemfile
bundle install --without=$BUNDLE_WITHOUT
echo "creating $DB database"
case $DB in
"mysql" )
mysql -e 'create database redmine_test;'
cat > config/database.yml << EOF
test:
adapter: mysql
database: redmine_test
username: root
EOF
;;
"mysql2" )
mysql -e 'create database redmine_test;'
cat > config/database.yml << EOF
test:
adapter: mysql2
username: root
encoding: utf8
database: redmine_test
EOF
;;
"postgres" )
psql -c 'create database redmine_test;' -U postgres
cat > config/database.yml << EOF
test:
adapter: postgresql
database: redmine_test
username: postgres
EOF
;;
esac
bundle exec rake db:migrate
bundle exec rake db:migrate:plugins
Jump to Line
Something went wrong with that request. Please try again.