2013-07-24 13:21:52 +02:00
|
|
|
language: ruby
|
2015-04-24 00:53:22 +02:00
|
|
|
sudo: false
|
2016-05-06 15:04:58 +02:00
|
|
|
rvm:
|
2018-10-13 20:04:00 +02:00
|
|
|
- 2.3
|
2013-07-24 13:21:52 +02:00
|
|
|
services:
|
2019-05-03 13:48:06 +02:00
|
|
|
- xvfb
|
2017-08-04 14:18:19 +02:00
|
|
|
- mysql
|
2013-07-24 13:21:52 +02:00
|
|
|
- redis-server
|
2016-02-23 23:55:54 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-05-06 15:04:58 +02:00
|
|
|
- libmagic-dev
|
2019-05-03 13:48:06 +02:00
|
|
|
- qt5-default
|
|
|
|
- libqt5webkit5-dev
|
|
|
|
- gstreamer1.0-plugins-base
|
|
|
|
- gstreamer1.0-tools
|
2013-12-16 23:11:39 +01:00
|
|
|
env: COVERALLS=1
|
2015-01-14 23:00:12 +01:00
|
|
|
cache: bundler
|
2015-01-02 18:23:10 +01:00
|
|
|
bundler_args:
|
|
|
|
- "--without development --deployment --jobs=3 --retry=3"
|
2013-07-24 21:28:42 +02:00
|
|
|
before_script:
|
2013-07-24 13:21:52 +02:00
|
|
|
- "bundle exec rake foodsoft:setup:stock_config"
|
2017-08-04 14:18:19 +02:00
|
|
|
- "mysql -e 'create database foodsoft_test default character set utf8 default collate utf8_general_ci;'"
|
|
|
|
- "mysql -e 'grant all on foodsoft_test.* to travis;'"
|
2013-07-24 21:40:36 +02:00
|
|
|
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
|
2013-07-24 21:57:17 +02:00
|
|
|
- 'bundle exec rake db:schema:load RAILS_ENV=test'
|
2019-05-03 13:48:06 +02:00
|
|
|
script: xvfb-run -a bundle exec rake rspec-rerun:spec
|