-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (35 loc) · 915 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
39
40
langauge: ruby
sudo: false
cache: bundler
before_install:
- gem uninstall bundler -x || gem uninstall bundler -a || true
- gem install -v 1.16.2 bundler
matrix:
include:
- rvm: 2.3.7
gemfile: gemfiles/rails_3.gemfile
env: TEST_APP_DIR=spec/app_rails3
- rvm: 2.3.7
gemfile: gemfiles/rails_4.gemfile
env: TEST_APP_DIR=spec/app_rails4
- rvm: 2.3.7
gemfile: gemfiles/rails_5.gemfile
env: TEST_APP_DIR=spec/app_rails5
- rvm: 2.5.5
gemfile: gemfiles/rails_4.gemfile
env: TEST_APP_DIR=spec/app_rails4
- rvm: 2.5.5
gemfile: gemfiles/rails_5.gemfile
env: TEST_APP_DIR=spec/app_rails5
script:
- export APP_DIR=`pwd`
- bundle install
- cd $TEST_APP_DIR
- bundle exec rake db:create:all
- bundle exec rake db:environment:set RAILS_ENV=test
- bundle exec rake db:schema:load
- cd $APP_DIR
- bundle exec rspec
bundler_args: ""
services:
- postgresql