forked from simukappu/activity_notification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (58 loc) · 1.51 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
language: ruby
branches:
except:
- images
rvm:
- 2.7.2
# - 2.6.6
# - 2.5.8
# - 2.4.10 #EOL
# - 2.3.8 #EOL
gemfile:
- gemfiles/Gemfile.rails-5.0
- gemfiles/Gemfile.rails-5.1
- gemfiles/Gemfile.rails-5.2
- gemfiles/Gemfile.rails-6.0
- gemfiles/Gemfile.rails-6.1
env:
- AN_ORM=active_record
- AN_ORM=active_record AN_TEST_DB=mysql
- AN_ORM=active_record AN_TEST_DB=postgresql
- AN_ORM=mongoid
- AN_ORM=mongoid AN_TEST_DB=mongodb
- AN_ORM=dynamoid
matrix:
include:
- rvm: ruby-head
gemfile: Gemfile
env: AN_ORM=active_record
- rvm: ruby-head
gemfile: Gemfile
env: AN_ORM=mongoid
- rvm: ruby-head
gemfile: Gemfile
env: AN_ORM=dynamoid
exclude:
- gemfile: gemfiles/Gemfile.rails-6.1
env: AN_ORM=dynamoid
allow_failures:
- rvm: ruby-head
fast_finish: true
services:
- mysql
- postgresql
- mongodb
sudo: false
cache: bundler
install:
- bundle install
- if [ "$AN_ORM" = "dynamoid" ]; then bin/install_dynamodblocal.sh; fi
before_script:
- bundle update
- if [ "$AN_TEST_DB" = "mysql" ]; then mysql -e 'create database activity_notification_test'; fi
- if [ "$AN_TEST_DB" = "postgresql" ]; then psql -c 'create database activity_notification_test' -U postgres; fi
- if [ "$AN_ORM" = "dynamoid" ]; then bin/start_dynamodblocal.sh; fi
- if [ "$AN_ORM" = "dynamoid" ]; then export AWS_DEFAULT_REGION=ap-northeast-1 AWS_ACCESS_KEY_ID=dummy AWS_SECRET_ACCESS_KEY=dummy; fi
script: bundle exec rspec
notifications:
email: true