Navigation Menu

Skip to content

Commit

Permalink
travis: add groonga setup script on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 12, 2012
1 parent 89b6504 commit 30006b7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions data/travis/setup.sh
@@ -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

0 comments on commit 30006b7

Please sign in to comment.