From: Toshi MARUYAMA Date: Sat, 14 Mar 2015 06:31:44 +0000 (+0000) Subject: add MariaDB 10.0 environment to travis (#17460, #19344) X-Git-Tag: 3.1.0~208 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fadbadd95bc43ae9f376420f07bd52ac209aae7c;p=redmine.git add MariaDB 10.0 environment to travis (#17460, #19344) git-svn-id: http://svn.redmine.org/redmine/trunk@14077 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.travis.yml b/.travis.yml index 013171bd0..2ae40697b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,10 @@ env: - "TEST_SUITE=functionals DATABASE_ADAPTER=mysql" - "TEST_SUITE=integration DATABASE_ADAPTER=mysql" - "TEST_SUITE=ui DATABASE_ADAPTER=mysql" + - "TEST_SUITE=units DATABASE_ADAPTER=mariadb-10.0" + - "TEST_SUITE=functionals DATABASE_ADAPTER=mariadb-10.0" + - "TEST_SUITE=integration DATABASE_ADAPTER=mariadb-10.0" + - "TEST_SUITE=ui DATABASE_ADAPTER=mariadb-10.0" - "TEST_SUITE=units DATABASE_ADAPTER=sqlite3" - "TEST_SUITE=functionals DATABASE_ADAPTER=sqlite3" - "TEST_SUITE=integration DATABASE_ADAPTER=sqlite3" @@ -27,9 +31,22 @@ matrix: # http://www.redmine.org/issues/19091 # https://github.com/jruby/jruby/issues/779 - rvm: jruby + # http://www.redmine.org/issues/17460 + # http://www.redmine.org/issues/19344 + - env: "TEST_SUITE=units DATABASE_ADAPTER=mariadb-10.0" before_install: - "sudo apt-get update -qq" - "sudo apt-get --no-install-recommends install bzr cvs git mercurial subversion" + - if [[ $DATABASE_ADAPTER =~ mariadb ]] ; + then + sudo service mysql stop ; + sudo apt-get install python-software-properties ; + sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ; + sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu precise main' ; + sudo apt-get update ; + sudo DEBIAN_FRONTEND=noninteractive apt-get -q --yes --force-yes -f --option DPkg::Options::=--force-confnew install mariadb-server ; + sudo apt-get install libmariadbd-dev ; + fi script: - "SCMS=bazaar,cvs,subversion,git,mercurial,filesystem" - "export SCMS" diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 52a876b2c..ac6e4ad2b 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -56,7 +56,7 @@ file 'config/database.yml' do test_db_name = "ci_#{branch}_#{ruby}_test" case database - when 'mysql' + when /(mysql|mariadb)/ dev_conf = {'adapter' => 'mysql2', 'database' => dev_db_name, 'host' => 'localhost', 'encoding' => 'utf8'}