Skip to content

Commit

Permalink
Install ceph, gluster and vault for integration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cholcombe973 committed Nov 29, 2016
1 parent 494f108 commit eef117d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ before_install:
- sudo add-apt-repository ppa:gluster/glusterfs-3.8 -y
- sudo add-apt-repository cloud-archive:mitaka -y
- sudo apt-get update -q
- sudo apt-get install glusterfs-common
- sudo apt-get install librados-dev
- sudo apt-get install glusterfs-common librados-dev ceph
install:
- bin/install-vault.sh
- bin/install-gluster.sh
- bin/install-ceph.sh
- export PATH=$HOME/bin:$PATH
- vault server -dev > /dev/null 2>&1 &
addons:
apt:
packages:
- liblzma-dev
- unzip
before_script:
- VAULT_ADDR=http://127.0.0.1:8200 vault token-create -id="test12345" -ttl="720h"
script:
- cargo build --features$FEATURES --verbose
- cargo test --features=$FEATURES --verbose
2 changes: 1 addition & 1 deletion bin/install-ceph.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
cat > /etc/ceph/ceph.conf <<EOF
cat () > sudo tee /etc/ceph/ceph.conf <<EOF
[global]
fsid = $(uuidgen)
mon_host = 127.0.0.1
Expand Down
4 changes: 2 additions & 2 deletions bin/install-gluster.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
mkdir /mnt/gluster-brick
sudo mkdir /mnt/gluster-brick
sudo apt-get install glusterfs-server
sudo gluster vol create test $HOSTNAME:/mnt/gluster-brick
sudo gluster vol create test $HOSTNAME:/mnt/gluster-brick force
sudo gluster vol start test

0 comments on commit eef117d

Please sign in to comment.