forked from fatfreecrm/fat_free_crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (69 loc) · 2.14 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
sudo: false
language: ruby
rvm:
- 2.5.7
- 2.6.5
- 2.7.1
dist: bionic
env:
global:
- BROWSER=chrome
matrix:
- DB=postgres TEST_SUITE=rubocop
- DB=postgres TEST_SUITE="rake spec:features"
- DB=postgres TEST_SUITE="rake spec:models"
- DB=postgres TEST_SUITE="rake spec:controllers spec:lib spec:routing spec:mailers"
- DB=postgres TEST_SUITE="rake spec:views spec:helpers"
- DB=mysql TEST_SUITE="rake spec:models"
- DB=sqlite TEST_SUITE="rake spec:models"
matrix:
fast_finish: true
exclude:
- rvm: 2.5.7
env: DB=postgres TEST_SUITE=rubocop
- rvm: 2.6.5
env: DB=postgres TEST_SUITE=rubocop
allow_failures:
- rvm: 2.5.7
env: DB=postgres TEST_SUITE="rake spec:features"
- rvm: 2.6.5
env: DB=postgres TEST_SUITE="rake spec:features"
- rvm: 2.7.1
env: DB=postgres TEST_SUITE="rake spec:features"
- rvm: 2.5.7
env: DB=mysql TEST_SUITE="rake spec:models"
- rvm: 2.5.7
env: DB=sqlite TEST_SUITE="rake spec:models"
- rvm: 2.6.5
env: DB=sqlite TEST_SUITE="rake spec:models"
- rvm: 2.7.1
env: DB=mysql TEST_SUITE="rake spec:models"
- rvm: 2.7.1
env: DB=sqlite TEST_SUITE="rake spec:models"
addons:
chrome: stable
bundler_args: --path=vendor/bundle --without heroku
cache: bundler
before_script:
# gem update --system is a workaround for travis-ci/travis-ci#8978
- "gem update --system"
- 'gem install bundler -v 1.17.3'
- sh -c "cp config/database.$DB.yml config/database.yml"
- sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
- sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"
- "RAILS_ENV=test bundle exec rake spec:preparedb"
# Run specs
script:
- "RAILS_ENV=test bundle exec $TEST_SUITE"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/859260451e154d78c1be
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
dist: xenial
services:
- xvfb
- postgresql
- mysql