Navigation Menu

Skip to content

Commit

Permalink
Use PPA on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 28, 2014
1 parent dda84e2 commit dacd973
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions data/travis/setup.sh
Expand Up @@ -28,25 +28,27 @@ if [ "$GROONGA_MASTER" = "yes" ]; then
sudo make install > /dev/null
cd ..
else
distribution=$(lsb_release --short --id | tr 'A-Z' 'a-z')
code_name=$(lsb_release --short --codename)
sudo apt-get purge libzmq3

case $distribution in
debian)
distribution=$(lsb_release --short --id | tr 'A-Z' 'a-z')
code_name=$(lsb_release --short --codename)
component=main
apt_url_base=http://packages.groonga.org
cat <<EOF | sudo tee /etc/apt/sources.list.d/groonga.list
deb ${apt_url_base}/${distribution}/ ${code_name} ${component}
deb-src ${apt_url_base}/${distribution}/ ${code_name} ${component}
EOF
sudo apt-get update -qq
sudo apt-get install -qq -y --allow-unauthenticated groonga-keyring
;;
ubuntu)
component=universe
sudo apt-get install -qq -y -V software-properties-common
sudo add-apt-repository -y ppa:groonga/ppa
;;
esac
apt_url_base=http://packages.groonga.org
cat <<EOF | sudo tee /etc/apt/sources.list.d/groonga.list
deb ${apt_url_base}/${distribution}/ ${code_name} ${component}
deb-src ${apt_url_base}/${distribution}/ ${code_name} ${component}
EOF

sudo apt-get purge libzmq3
sudo apt-get update -qq
sudo apt-get install -qq -y --allow-unauthenticated groonga-keyring
sudo apt-get update -qq
sudo apt-get install -qq -y -V groonga libgroonga-dev
fi

0 comments on commit dacd973

Please sign in to comment.