Move travis startup script to its own file. Add GC settings for REE and -q2 for aptitude install.
This commit is contained in:
parent
a5b120532a
commit
77149a9623
2 changed files with 24 additions and 10 deletions
11
.travis.yml
11
.travis.yml
|
|
@ -3,16 +3,7 @@ rvm:
|
||||||
- ree
|
- ree
|
||||||
- 1.9.2
|
- 1.9.2
|
||||||
|
|
||||||
before_script:
|
before_script: "./config/ci/before-travis.sh"
|
||||||
- ruby -e "system('rm Gemfile.lock') if RUBY_VERSION.include?('1.9')"
|
|
||||||
- ruby -e "system('bundle install') if RUBY_VERSION.include?('1.9')"
|
|
||||||
- "sudo aptitude -q -y install firefox"
|
|
||||||
- "sudo cp config/ci/xvfb /etc/init.d/xvfb"
|
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
|
||||||
- "sass --update public/stylesheets/sass/:public/stylesheets/"
|
|
||||||
- "cp config/database.yml.example config/database.yml"
|
|
||||||
- "rake db:create"
|
|
||||||
- "rake db:schema:load"
|
|
||||||
|
|
||||||
script: "bundle exec rake travis"
|
script: "bundle exec rake travis"
|
||||||
|
|
||||||
|
|
|
||||||
23
config/ci/before-travis.sh
Normal file
23
config/ci/before-travis.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# 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
|
||||||
|
rake db:schema:load
|
||||||
Loading…
Reference in a new issue