]> source.dussan.org Git - redmine.git/commitdiff
travis: fix MariaDB 5.5 test error
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 30 Apr 2015 06:09:33 +0000 (06:09 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 30 Apr 2015 06:09:33 +0000 (06:09 +0000)
<pre>
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-5.5 (= 5.5.42+maria-1~precise) but it is not going to be installed
</pre>

git-svn-id: http://svn.redmine.org/redmine/trunk@14231 e93f8b46-1217-0410-a6f0-8f06a7374b81

.travis.yml
test/travis/mariadb.pref [new file with mode: 0644]

index c066ba9c6656f12b242b7fe1b87ed93b75479a1a..62abd6698a1967212331dbda4d36b041ff9b5e09 100644 (file)
@@ -61,6 +61,7 @@ before_install:
         sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db ;
         MARIADB_VER=`echo $DB | sed -e 's/mariadb-//'` ;
         sudo add-apt-repository ''"deb http://ftp.osuosl.org/pub/mariadb/repo/${MARIADB_VER}/ubuntu precise main"'' ;
+        sudo cp test/travis/mariadb.pref /etc/apt/preferences.d/mariadb.pref ;
         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 ;
diff --git a/test/travis/mariadb.pref b/test/travis/mariadb.pref
new file mode 100644 (file)
index 0000000..3d0eeab
--- /dev/null
@@ -0,0 +1,6 @@
+# https://mariadb.com/kb/en/mariadb/installing-mariadb-deb-files/
+# /etc/apt/preferences.d/
+
+Package: *
+Pin: origin ftp.osuosl.org
+Pin-Priority: 1000