diff --git a/.travis.yml b/.travis.yml index 7d6dd98..8cf0945 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,17 +8,12 @@ before_install: - ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N '' - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys - chmod 600 ~/.ssh/authorized_keys - - sudo apt-get -y install python-virtualenv - - git clone https://github.com/ceph/ceph-deploy - - cd ceph-deploy - - ./bootstrap - - ./ceph-deploy install --release firefly `hostname` - - ./ceph-deploy pkg --install librados-dev `hostname` - -install: - - echo "asdf" - -script: "exit 0" + - sudo pip install ceph-deploy + - ceph-deploy install --release giant `hostname` + - ceph-deploy pkg --install librados-dev `hostname` + - bash ci/micro-osd.sh /tmp/micro-ceph + - export CEPH_CONF=/tmp/micro-ceph/ceph.conf + - ceph status notifications: recipients: diff --git a/README.md b/README.md index db1c35f..718d689 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # go-rados - Go bindings for RADOS distributed object store +[![Build Status](https://travis-ci.org/noahdesu/go-rados.svg)](https://travis-ci.org/noahdesu/go-rados) + ## Installation go get github.com/noahdesu/go-rados diff --git a/ci/micro-osd.sh b/ci/micro-osd.sh new file mode 100644 index 0000000..7e10ffc --- /dev/null +++ b/ci/micro-osd.sh @@ -0,0 +1,90 @@ +# +# Copyright (C) 2013,2014 Loic Dachary +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +set -e +set -u + +DIR=$1 + +#if ! dpkg -l ceph ; then +# wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | sudo apt-key add - +# echo deb http://ceph.com/debian-dumpling/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list +# sudo apt-get update +# sudo apt-get --yes install ceph ceph-common +#fi + +# get rid of process and directories leftovers +pkill ceph-mon || true +pkill ceph-osd || true +rm -fr $DIR + +# cluster wide parameters +mkdir -p ${DIR}/log +cat >> $DIR/ceph.conf <> $DIR/ceph.conf <> $DIR/ceph.conf <