forked from comfy/comfortable-mexican-sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 932 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
41
42
43
44
dist: xenial
services:
- xvfb
addons:
sources:
- google-chrome
apt:
packages:
- google-chrome-stable
language: ruby
rvm:
- 2.3.8
- 2.4.9
- 2.5.7
- 2.6.5
gemfile:
- test/gemfiles/5.2.gemfile
jobs:
include:
- rvm: 2.5.7
gemfile: test/gemfiles/6.0.gemfile
- rvm: 2.6.5
gemfile: test/gemfiles/6.0.gemfile
branches:
only:
- master
before_install:
- gem update --system
- gem update bundler
before_script:
- wget http://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo apt-get install libnss3
- sudo apt-get --only-upgrade install google-chrome-stable
- sudo cp chromedriver /usr/local/bin/.
- sudo chmod +x /usr/local/bin/chromedriver
- export DISPLAY=:99.0
- sleep 3
script:
- bundle exec rake db:migrate
- bundle exec rake test
- SKIP_COV=true bundle exec rake test:system
- bundle exec rubocop