-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use docker zlog/ci image in travis
Signed-off-by: Noah Watkins <[email protected]>
- Loading branch information
Showing
4 changed files
with
15 additions
and
62 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 |
---|---|---|
@@ -1,56 +1,10 @@ | ||
language: cpp | ||
sudo: required | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- pushd /tmp | ||
- git clone --recursive https://github.com/noahdesu/ceph.git | ||
- cd ceph | ||
- git checkout origin/cls_zlog | ||
- ./install-deps.sh | ||
- ./autogen.sh | ||
- ./configure | ||
- cd src | ||
- make libcls_zlog.la | ||
- make libcls_zlog_client.la | ||
- popd | ||
- ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N '' | ||
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | ||
- chmod 600 ~/.ssh/authorized_keys | ||
- sudo pip install ceph-deploy | ||
- ceph-deploy install --dev master `hostname` | ||
- ceph-deploy pkg --install librados-dev `hostname` | ||
- sudo cp /tmp/ceph/src/.libs/libcls_zlog.so* /usr/lib/rados-classes/ | ||
- bash ci/micro-osd.sh /tmp/micro-ceph | ||
- export CEPH_CONF=/tmp/micro-ceph/ceph.conf | ||
- ceph status | ||
- sudo apt-get install libprotobuf-dev protobuf-compiler | ||
|
||
install: | ||
- autoreconf -ivf | ||
- mkdir -p /tmp/install/rados/ | ||
- cp /tmp/ceph/src/cls/zlog/cls_zlog_client.h /tmp/install/rados | ||
- CPPFLAGS=-I/tmp/install LDFLAGS=-L/tmp/ceph/src/.libs ./configure | ||
- make | ||
- docker pull zlog/ci | ||
|
||
script: | ||
- cd src | ||
- export LD_LIBRARY_PATH=/tmp/ceph/src/.libs:$LD_LIBRARY_PATH | ||
- ./zlog-seqr --port 5678 --daemon | ||
- ./test | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-4.8 | ||
- g++-4.8 | ||
- clang | ||
|
||
sudo: required | ||
services: | ||
- docker | ||
- docker run zlog/ci |
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
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
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