foodsoft/.travis.yml

27 lines
814 B
YAML

language: ruby
sudo: false
rvm:
- 2.3
services:
- xvfb
- mysql
- redis-server
addons:
apt:
packages:
- libmagic-dev
- qt5-default
- libqt5webkit5-dev
- gstreamer1.0-plugins-base
- gstreamer1.0-tools
env: COVERALLS=1
cache: bundler
bundler_args:
- "--without development --deployment --jobs=3 --retry=3"
before_script:
- "bundle exec rake foodsoft:setup:stock_config"
- "mysql -e 'create database foodsoft_test default character set utf8 default collate utf8_general_ci;'"
- "mysql -e 'grant all on foodsoft_test.* to travis;'"
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
- 'bundle exec rake db:schema:load RAILS_ENV=test'
script: xvfb-run -a bundle exec rake rspec-rerun:spec