-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
38 lines (29 loc) · 1016 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: ruby # version from .ruby-version
cache:
- bundler
sudo: required # required for starting rabbitmq
services:
- mysql
- rabbitmq
addons:
apt:
packages:
- rabbitmq-server
code_climate:
repo_token: 8a2a969cd1d481fbc952943cc27b54584b2f27217ea2e2905e77652d44c502be
before_install:
# don't use bundler 2 yet https://docs.travis-ci.com/user/languages/ruby/#bundler-20
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
- mysql -e 'create database myapp_test;'
- cp config/database.travis.yml config/database.yml
- cp config/secrets.travis.yml config/secrets.yml
- cp config/rabbitmq.travis.yml config/rabbitmq.yml
- env | sort
install:
- bundle install --jobs=3 --retry=3 --deployment --without development
script:
- bundle exec rake db:migrate
- RAILS_ENV=test NO_COVERAGE=1 bundle exec rake db:seed
- RAILS_ENV=test NO_COVERAGE=1 bundle exec rspec
- RAILS_ENV=test NO_COVERAGE=1 bundle exec cucumber