Skip to content

Commit 1a8a703

Browse files
author
Matthieu Nottale
committed
travis: Install and start memo kvs.
Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
1 parent df74520 commit 1a8a703

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ before_script:
1818
- script/travis_consul.sh 0.6.3
1919
- script/travis_etcd.sh 3.0.0
2020
- script/travis_zk.sh 3.5.1-alpha
21+
- script/travis_memo.sh 0.9.2
2122

2223
script:
2324
- ./consul agent -server -bootstrap -advertise=127.0.0.1 -data-dir /tmp/consul -config-file=./config.json 1>/dev/null &
2425
- ./etcd/etcd --listen-client-urls 'http://0.0.0.0:4001' --advertise-client-urls 'http://127.0.0.1:4001' >/dev/null 2>&1 &
2526
- ./script/travis_start_zk.sh
27+
- ./memo/bin/memo kvs run kvs --allow-root-creation --grpc localhost:9000 >/dev/null 2>&1 &
2628
- script/validate-gofmt
2729
- go vet ./...
2830
- fgt golint ./...

script/travis_memo.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
VERSION=$1
4+
if test -z "$VERSION"; then
5+
VERSION=0.9.2
6+
fi
7+
8+
tarball=https://storage.googleapis.com/sh_infinit_releases/linux64/memo-x86_64-linux_debian_oldstable-gcc4-$VERSION.tbz
9+
10+
wget "$tarball"
11+
tar -xvf memo-x86_64-linux_debian_oldstable-gcc4-$VERSION.tbz
12+
mv memo-x86_64-linux_debian_oldstable-gcc4-$VERSION memo
13+
14+
memo/bin/memo user create
15+
memo/bin/memo silo create filesystem silo
16+
memo/bin/memo network create network --silo silo
17+
memo/bin/memo kvs create --name kvs --network network

0 commit comments

Comments
 (0)