Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: add groonga setup script on Travis
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |