forked from zdennis/activerecord-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (61 loc) · 1.75 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
cache: bundler
rvm:
- 2.5.5
env:
global:
# https://github.com/discourse/discourse/blob/master/.travis.yml
- RUBY_GC_MALLOC_LIMIT=50000000
matrix:
- AR_VERSION=5.1
- AR_VERSION=5.2
- AR_VERSION=6.0
matrix:
include:
- rvm: 2.3.8
env: AR_VERSION=3.2
- rvm: 2.3.8
env: AR_VERSION=4.0
- rvm: 2.3.8
env: AR_VERSION=4.1
- rvm: 2.3.8
env: AR_VERSION=4.2
- rvm: 2.3.8
env: AR_VERSION=5.0
fast_finish: true
addons:
postgresql: "9.5"
apt:
sources:
- travis-ci/sqlite3
- mysql-5.7-trusty
packages:
- sqlite3
- mysql-server
- mysql-client
- postgresql-9.5-postgis-2.3
before_install:
- gem update --system
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade
- sudo service mysql restart
before_script:
- mysql -e 'create database activerecord_import_test;'
- psql -c 'create database activerecord_import_test;' -U postgres
- psql activerecord_import_test -c 'create extension if not exists hstore;' -U postgres
- psql -c 'create extension if not exists postgis;' -U postgres
- psql -c 'create extension if not exists "uuid-ossp";' -U postgres
- cp test/travis/database.yml test/database.yml
script:
- bundle exec rake test:mysql2
- bundle exec rake test:mysql2_makara
- bundle exec rake test:mysql2spatial
- bundle exec rake test:postgis
- bundle exec rake test:postgresql
- bundle exec rake test:postgresql_makara
- bundle exec rake test:seamless_database_pool
- bundle exec rake test:spatialite
- bundle exec rake test:sqlite3
- bundle exec rubocop
dist: trusty
sudo: required