Get config.yml/secrets.yml out of travis/vagrant
This commit is contained in:
parent
bd36ce0fb2
commit
d532016312
2 changed files with 0 additions and 20 deletions
|
|
@ -18,8 +18,6 @@ notifications:
|
||||||
on_failure: change
|
on_failure: change
|
||||||
before_script:
|
before_script:
|
||||||
- cp config/database.yml.example config/database.yml
|
- cp config/database.yml.example config/database.yml
|
||||||
- cp config/config.yml.example config/config.yml
|
|
||||||
- cp config/secrets.yml.example config/secrets.yml
|
|
||||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||||
script:
|
script:
|
||||||
- 'bundle exec rubocop -Dc .rubocop.yml'
|
- 'bundle exec rubocop -Dc .rubocop.yml'
|
||||||
|
|
|
||||||
18
bootstrap.sh
18
bootstrap.sh
|
|
@ -15,24 +15,6 @@ gem install bundler
|
||||||
echo -e "\ninstalling your bundle...\n"
|
echo -e "\ninstalling your bundle...\n"
|
||||||
su - vagrant -c "cd /vagrant/; bundle install --quiet"
|
su - vagrant -c "cd /vagrant/; bundle install --quiet"
|
||||||
|
|
||||||
# Configure the app if it isn't
|
|
||||||
if [ ! -f /vagrant/config/config.yml ] && [ -f /vagrant/config/config.yml.example ]; then
|
|
||||||
echo "Configuring your app in config/options.yml..."
|
|
||||||
cp config/config.yml.example config/config.yml
|
|
||||||
else
|
|
||||||
echo -e "\n\nWARNING: You have already configured your app in config/options.yml."
|
|
||||||
echo -e "WARNING: Please make sure this configuration works in this vagrant box!\n\n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Configure the app if it isn't
|
|
||||||
if [ ! -f /vagrant/config/secrets.yml ] && [ -f /vagrant/config/secrets.yml.example ]; then
|
|
||||||
echo "Configuring your secrets in config/secrets.yml..."
|
|
||||||
cp config/secrets.yml.example config/secrets.yml
|
|
||||||
else
|
|
||||||
echo -e "\n\nWARNING: You have already configured your secrets in config/secrets.yml."
|
|
||||||
echo -e "WARNING: Please make sure this configuration works in this vagrant box!\n\n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Configure the database if it isn't
|
# Configure the database if it isn't
|
||||||
if [ ! -f /vagrant/config/database.yml ] && [ -f /vagrant/config/database.yml.example ]; then
|
if [ ! -f /vagrant/config/database.yml ] && [ -f /vagrant/config/database.yml.example ]; then
|
||||||
echo -e "\nSetting up your database from config/database.yml...\n"
|
echo -e "\nSetting up your database from config/database.yml...\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue