Skip to content

Commit 2b51a22

Browse files
committed
[ci] re-organize + attempt fixing mariadb install
1 parent bf122a9 commit 2b51a22

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.travis.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
language: ruby
21
sudo: false
32
dist: bionic
43

@@ -7,6 +6,16 @@ services:
76
addons:
87
postgresql: 9.4
98

9+
install:
10+
# to fix this issue: https://travis-ci.community/t/mariadb-10-1-fails-to-install-on-xenial/3151/3
11+
- mysql -u root -e 'CREATE USER IF NOT EXISTS travis@localhost; GRANT ALL ON *.* TO travis@localhost;'
12+
13+
language: ruby
14+
rvm:
15+
- jruby-9.1.16.0
16+
jdk:
17+
- openjdk8
18+
1019
bundler_args: --without development
1120
script: bundle exec rake ${TEST_PREFIX}test_$DB
1221
before_install:
@@ -38,10 +47,7 @@ before_script:
3847
psql -c "create database activerecord_unittest;" -U postgres && \
3948
psql -c "create database activerecord_unittest2;" -U postgres \
4049
|| true
41-
rvm:
42-
- jruby-9.1.16.0
43-
jdk:
44-
- openjdk8
50+
4551
env:
4652
- DB=mysql2 PREPARED_STATEMENTS=false
4753
- DB=mysql2 PREPARED_STATEMENTS=true
@@ -84,10 +90,10 @@ matrix:
8490
env: DB=sqlite3
8591
# testing against MariaDB
8692
- addons:
87-
mariadb: '10.0'
93+
mariadb: 10.1
8894
env: DB=mariadb PREPARED_STATEMENTS=false
8995
- addons:
90-
mariadb: '10.1'
96+
mariadb: 10.3
9197
env: DB=mariadb PREPARED_STATEMENTS=true
9298
# Rails test-suite :
9399
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.0.7.1" # PS off by default

0 commit comments

Comments
 (0)