-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (27 loc) · 918 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
language: ruby # version from .ruby-version
cache:
- bundler
sudo: required # required for starting rabbitmq
services:
- postgresql
- rabbitmq
addons:
apt:
packages:
- rabbitmq-server
code_climate:
repo_token: c5095ac9e2e622f87a86d61df49761b82cd6f91ea4b966372e40898dfe800956
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'
- psql -eac 'create database travis_ci_test;' -U postgres
- cp -v config/database.travis.yml config/database.yml
- cp -v config/secrets.travis.yml config/secrets.yml
- cp -v 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
- NO_COVERAGE=1 bundle exec rspec