<commit_before># Remove Gemfile.lock and rebundle on Ruby 1.9
ruby -e "system('rm Gemfile.lock') if RUBY_VERSION.include?('1.9')"
ruby -e "system('bundle install') if RUBY_VERSION.include?('1.9')"

# adjust GC settings for REE
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000

# Install firefox and start xvfb in preparation for cucumber & jasmine
sudo aptitude -q2 -y install firefox
sudo cp config/ci/xvfb /etc/init.d/xvfb
sh -e /etc/init.d/xvfb start

# Regenerate css files
sass --update public/stylesheets/sass/:public/stylesheets/

# Set up database
cp config/database.yml.example config/database.yml
rake db:create --trace
rake db:schema:load --trace<commit_msg>More debug output in travis. Also, use --without development production in the rebundle, same as in the original bundle.<commit_after># Remove Gemfile.lock and rebundle on Ruby 1.9
ruby -e "system('rm Gemfile.lock') if RUBY_VERSION.include?('1.9')"
ruby -e "system('bundle install --without development production') if RUBY_VERSION.include?('1.9')"

# adjust GC settings for REE
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000

# Install firefox and start xvfb in preparation for cucumber & jasmine
sudo aptitude -q2 -y install firefox
sudo cp config/ci/xvfb /etc/init.d/xvfb
sh -e /etc/init.d/xvfb start

# Regenerate css files
sass --update public/stylesheets/sass/:public/stylesheets/

# Set up database
cp config/database.yml.example config/database.yml
which rake
rake --version
rake db:create --trace
rake db:schema:load --trace
{'fraction_non_alphanumeric': 0.09325842696629214, 'fraction_numerical': 0.04269662921348315, 'mean_word_length': 5.360714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6856356', 'n_tokens_mistral': 701, 'n_tokens_neox': 622, 'n_words': 178}