forked from kelseyhightower/confd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (52 loc) · 1.94 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: go
go:
- 1.6
- tip
env:
- VAULT_ADDR='http://127.0.0.1:8200'
services:
- redis
before_install:
# install consul
- wget https://releases.hashicorp.com/consul/0.6.3/consul_0.6.3_linux_amd64.zip
- unzip consul_0.6.3_linux_amd64.zip
- sudo mv consul /bin/
- consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul &
# install etcd
- wget https://github.com/coreos/etcd/releases/download/v2.2.5/etcd-v2.2.5-linux-amd64.tar.gz
- tar xzf etcd-v2.2.5-linux-amd64.tar.gz
- sudo mv etcd-v2.2.5-linux-amd64/etcd /bin/
- etcd &
# install DynamoDB
- mkdir /tmp/dynamodb
- wget -O - http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest | tar xz --directory /tmp/dynamodb
- java -Djava.library.path=/tmp/dynamodb/DynamoDBLocal_lib -jar /tmp/dynamodb/DynamoDBLocal.jar -inMemory &
# Install rancher metadata
- wget https://github.com/rancher/rancher-metadata/releases/download/v0.1.0/rancher-metadata.tar.gz
- mkdir -p ./rancher-metadata
- tar xzf rancher-metadata.tar.gz --strip-components=1 -C ./rancher-metadata
- sudo mv ./rancher-metadata/bin/rancher-metadata /bin/
# Install vault
- wget https://releases.hashicorp.com/vault/0.4.1/vault_0.4.1_linux_amd64.zip
- unzip vault_0.4.1_linux_amd64.zip
- sudo mv vault /bin/
- vault server -dev &
# Install zookeeper
- wget http://www.eu.apache.org/dist/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz
- tar xzf zookeeper-3.4.8.tar.gz
- mkdir /tmp/zookeeper && cp integration/zookeeper/zoo.cfg zookeeper-3.4.8/conf/zoo.cfg
- zookeeper-3.4.8/bin/zkServer.sh start
install:
- sudo pip install awscli
- go get golang.org/x/tools/cmd/cover
- ./build
- sudo ./install
script:
- ./test
- bash integration/consul/test.sh
- bash integration/etcd/test.sh
- bash integration/redis/test.sh
- bash integration/rancher/test.sh
- bash integration/vault/test.sh
- bash integration/zookeeper/test.sh
- bash integration/dynamodb/test.sh