Skip to content

Commit 0182449

Browse files
committed
Merge branch '52-stable'
* 52-stable: [ci] mariadb 10.1 won't install but 10.3 does [ci] added install piece caused to skip bundle install [ci] back to Xenial as it only support Java 9+ [ci] re-organize + attempt fixing mariadb install [ci] let's try Bionic - MariaDB addon fails on Xenial [ci] build all branches + fix duplicate addons: [mysql] future proof supported jdbc driver versions
2 parents 15d1506 + 693cfd8 commit 0182449

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.travis.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1-
language: ruby
21
sudo: false
2+
dist: xenial
3+
34
services:
45
- mysql
56
addons:
6-
postgresql: 9.6
7-
branches:
8-
only:
9-
- master
10-
- /.*-stable$/
11-
- /^test-.*/
12-
- /maintenance|support/
13-
- /.*dev$/
14-
bundler_args: --without development
15-
script: bundle exec rake ${TEST_PREFIX}test_$DB
7+
postgresql: 9.4
8+
169
before_install:
1710
- unset _JAVA_OPTIONS
11+
- rvm @default,@global do gem uninstall bundler -a -x -I || true
12+
- gem install bundler -v "~>1.17.3"
13+
install:
14+
- bundle install --retry 3 --without development
15+
# to fix this issue: https://travis-ci.community/t/mariadb-10-1-fails-to-install-on-xenial/3151/3
16+
- mysql -u root -e 'CREATE USER IF NOT EXISTS travis@localhost; GRANT ALL ON *.* TO travis@localhost;' || true
17+
18+
language: ruby
19+
rvm:
20+
- jruby-9.2.7.0
21+
jdk:
22+
- openjdk8
23+
24+
script: bundle exec rake ${TEST_PREFIX}test_$DB
1825
before_script:
1926
- echo "JAVA_OPTS=$JAVA_OPTS"
2027
- export JRUBY_OPTS="-J-Xms64M -J-Xmx1024M"
@@ -40,10 +47,7 @@ before_script:
4047
psql -c "create database activerecord_unittest;" -U postgres && \
4148
psql -c "create database activerecord_unittest2;" -U postgres \
4249
|| true
43-
rvm:
44-
- jruby-9.2.7.0
45-
jdk:
46-
- openjdk8
50+
4751
env:
4852
global:
4953
- AR_VERSION="6-0-stable"
@@ -96,10 +100,10 @@ matrix:
96100

97101
# testing against MariaDB
98102
- addons:
99-
mariadb: '10.0'
103+
mariadb: 10.2
100104
env: DB=mariadb PREPARED_STATEMENTS=false
101105
- addons:
102-
mariadb: '10.1'
106+
mariadb: 10.3
103107
env: DB=mariadb PREPARED_STATEMENTS=true
104108

105109
# Rails test-suite :

activerecord-jdbcmysql-adapter/activerecord-jdbcmysql-adapter.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Gem::Specification.new do |gem|
1919
gem.files = `git ls-files`.split("\n") # assuming . working directory
2020

2121
gem.add_dependency 'activerecord-jdbc-adapter', "#{version}"
22-
gem.add_dependency 'jdbc-mysql', '~> 5.1.36' #, '< 8'
22+
gem.add_dependency 'jdbc-mysql', '~> 5.1.36', '< 9'
2323
end

0 commit comments

Comments
 (0)