forked from kelseyhightower/confd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1.04 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
language: go
go:
- 1.4
- tip
services:
- redis
before_install:
# install consul
- wget https://dl.bintray.com/mitchellh/consul/0.5.0_linux_amd64.zip
- unzip 0.5.0_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.0.9/etcd-v2.0.9-linux-amd64.tar.gz
- tar xzf etcd-v2.0.9-linux-amd64.tar.gz
- sudo mv etcd-v2.0.9-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:
- sudo pip install awscli
- go get github.com/constabulary/gb/...
- go get golang.org/x/tools/cmd/cover
- gb build all
- sudo ./install
script:
- ./test
- bash integration/consul/test.sh
- bash integration/etcd/test.sh
- bash integration/redis/test.sh