Skip to content

Instantly share code, notes, and snippets.

@akirill0v
Last active November 9, 2015 20:39
Show Gist options
  • Save akirill0v/37b2985efd8150173bb5 to your computer and use it in GitHub Desktop.
Save akirill0v/37b2985efd8150173bb5 to your computer and use it in GitHub Desktop.
language: ruby
env:
matrix:
- BUILD_CMD='find spec -type f -name "[a-l]*spec.rb" -print | xargs bundle exec rspec'
- BUILD_CMD='find spec -type f -name "[m-z]*spec.rb" -print | xargs bundle exec rspec'
RAILS_ENV: test
services:
- elasticsearch
rvm:
- 2.1.7
bundler_args: --without production development
database:
- cp config/database.yml.sample config/database.yml
- cp config/secrets.yml.sample config/secrets.yml
- sudo service postgresql restart
before_script:
- sudo /usr/share/elasticsearch/bin/plugin -install analysis-morphology -url http://dl.bintray.com/content/imotov/elasticsearch-plugins/org/elasticsearch/elasticsearch-analysis-morphology/1.2.0/elasticsearch-analysis-morphology-1.2.0.zip
- sudo service elasticsearch restart
- sudo -u postgres createuser --superuser pgsql
- psql -c 'create database insales_test;' --username=postgres
- psql -f config/insales.vexor.sql insales_test pgsql > /dev/null
- sudo apt-get -qq install jpegoptim
- bundle exec rake spec:db:setup > /dev/null
script: eval ${BUILD_CMD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment