forked from igorkasyanchuk/rails_db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·44 lines (34 loc) · 938 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
language: ruby
rvm:
- "2.3.7"
- "2.4.4"
- "2.5.1"
gemfile:
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_0.gemfile
before_install:
- gem install bundler
- gem install mime-types -v "~> 2.0"
- gem install paranoia
before_deploy:
- gem install mime-types -v "~> 2.0"
- gem install paranoia
before_script:
- rm Gemfile.lock
- cp config/database.travis.yml config/database.yml
- cp config/database.travis.yml test/dummy/config/database.yml
- psql -c 'create database rails_db;' -U postgres
- mysql -e "drop database if exists rails_db;" -uroot
- mysql -e "create database IF NOT EXISTS rails_db;" -uroot
cache: bundler
bundler_args: --without development --jobs=3 --retry=3 --path=../vendor/bundle
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake test
notifications:
email: false