forked from owen2345/camaleon-cms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (29 loc) · 805 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
language: ruby
bundler_args: '-j4'
matrix:
allow_failures:
- gemfile: gemfiles/rails_edge.gemfile
- rvm: ruby-head
include:
- rvm: 2.2
gemfile: gemfiles/rails_4_2.gemfile
- rvm: 2.3
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.4
gemfile: gemfiles/rails_5_1.gemfile
- rvm: 2.5
gemfile: gemfiles/rails_5_2.gemfile
- rvm: ruby-head
gemfile: gemfiles/rails_edge.gemfile
fast_finish: true
script:
- gem pristine --all # workaround for bug in Bundler 1.16.x / RubyGems 2.7.x
- bundle update rails
- bundle exec rubocop
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rspec
before_install:
- "echo 'gem: --no-document' > ~/.gemrc"
- "echo '--colour' > ~/.rspec"
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start