[Groonga-commit] groonga/groonga [master] travis: add groonga setup script on Travis

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sun Aug 12 16:30:28 JST 2012


Kouhei Sutou	2012-08-12 16:30:28 +0900 (Sun, 12 Aug 2012)

  New Revision: 30006b7b43ef28fc1bdb8e2c569583777857c9d7
  https://github.com/groonga/groonga/commit/30006b7b43ef28fc1bdb8e2c569583777857c9d7

  Log:
    travis: add groonga setup script on Travis

  Added files:
    data/travis/setup.sh

  Added: data/travis/setup.sh (+25 -0) 100755
===================================================================
--- /dev/null
+++ data/travis/setup.sh    2012-08-12 16:30:28 +0900 (b09d626)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+set -x
+
+distribution=$(lsb_release --short --id | tr 'A-Z' 'a-z')
+code_name=$(lsb_release --short --codename)
+case $distribution in
+    debian)
+	component=main
+	;;
+    ubunutu)
+	component=universe
+	;;
+esac
+cat <<EOF | sudo tee /etc/apt/sources.list.d/groonga.list
+deb http://packages.groonga.org/${distribution}/ ${code_name} ${component}
+deb-src http://packages.groonga.org/${distribution}/ ${code_name} ${component}
+EOF
+
+sudo apt-get update
+sudo apt-get -y --allow-unauthenticated install groonga-keyring
+sudo apt-get -y purge zeromq
+sudo apt-get update
+sudo apt-get -y install libgroonga-dev
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index