Created
July 28, 2014 16:20
-
-
Save jcalvert/4c59b3c6e4164cadbdfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
before_install: | |
- sudo apt-get install libgeos-dev | |
- gem update --system 1.8.25 | |
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" | |
- gem install bundler | |
before_script: | |
- mysql -e 'create database rc_test; create database rc_fleet_test; create database rc_real_time_test;' | |
- bundle exec rake db:test:refresh | |
branches: | |
except: | |
- /deploy-.*/ | |
cache: | |
- bundler | |
- apt | |
env: | |
global: | |
- RAILS_ENV=test | |
- RUBY_GC_MALLOC_LIMIT=90000000 | |
- RUBY_FREE_MIN=200000 | |
matrix: | |
- TEST_SUITE=units | |
- TEST_SUITE=functionals | |
- TEST_SUITE=integration | |
install: | |
- "sudo apt-get remove mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5" | |
- "sudo apt-get autoremove" | |
- "sudo apt-get install libaio1" | |
- "wget -O mysql-5.6.14.deb http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.17-debian6.0-x86_64.deb/from/http://cdn.mysql.com/" | |
- "sudo dpkg -i mysql-5.6.14.deb" | |
- "sudo cp /opt/mysql/server-5.6/support-files/mysql.server /etc/init.d/mysql.server" | |
- "sudo ln -s /opt/mysql/server-5.6/bin/* /usr/bin/" | |
- "sudo sed -i'' 's/table_cache/table_open_cache/' /etc/mysql/my.cnf" | |
- "sudo sed -i'' 's/log_slow_queries/slow_query_log/' /etc/mysql/my.cnf" | |
- "sudo sed -i'' 's/basedir[^=]\\+=.*$/basedir = \\/opt\\/mysql\\/server-5.6/' /etc/mysql/my.cnf" | |
- "sudo /etc/init.d/mysql.server start" | |
- "bundle install" | |
language: ruby | |
notifications: | |
hipchat: redacted | |
rvm: | |
- 1.9.3-p484 | |
script: "bundle exec rake test:$TEST_SUITE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment