[Groonga-mysql-commit] mroonga/mroonga at f2c9ed1 [master] travis: use apt for installing MySQL 5.6 or later

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 19 15:58:50 JST 2016


Kouhei Sutou	2016-04-19 15:58:50 +0900 (Tue, 19 Apr 2016)

  New Revision: f2c9ed12a3a2b5e14ff23fea79c1977afb4bfe88
  https://github.com/mroonga/mroonga/commit/f2c9ed12a3a2b5e14ff23fea79c1977afb4bfe88

  Message:
    travis: use apt for installing MySQL 5.6 or later

  Modified files:
    tools/travis/install.sh

  Modified: tools/travis/install.sh (+12 -1)
===================================================================
--- tools/travis/install.sh    2016-04-19 15:30:51 +0900 (b1dcfcb)
+++ tools/travis/install.sh    2016-04-19 15:58:50 +0900 (7f01e6a)
@@ -87,7 +87,7 @@ else
              mysql-testsuite libmysqld-dev
         apt-get -qq source mysql-server
         ln -s $(find . -maxdepth 1 -type d | sort | tail -1) mysql
-      else
+      elif [ "$series" = "5.5" ]; then
         download_base="http://cdn.mysql.com/Downloads/MySQL-${series}/"
         if [ "$(uname -m)" = "x86_64" ]; then
           architecture=x86_64
@@ -103,6 +103,17 @@ else
         sudo dpkg -i $deb
         tar xzf $tar_gz
         ln -s mysql-${version} mysql
+      else
+        repository_deb=mysql-apt-config_0.7.2-1_all.deb
+        curl -O http://repo.mysql.com/${repository_deb}
+        sudo dpkg -i ${repository_deb}
+        sudo apt-get -qq update
+        sudo apt-get -qq -y remove --purge mysql-common
+        sudo apt-get -qq -y build-dep mysql-server
+        sudo apt-get -qq -y install \
+             mysql-server libmysqlclient-dev mysql-test
+        apt-get -qq source mysql-server
+        ln -s $(find . -maxdepth 1 -type d | sort | tail -1) mysql
       fi
       ;;
     mariadb-*)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index