forked from kelseyhightower/confd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 2.18 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
language: go
go:
- 1.x
- tip
env:
- VAULT_ADDR='http://127.0.0.1:8200' CONSUL_VERSION=0.9.3 ETCD_VERSION=3.3.1 DYNAMODB_VERSION=2017-02-16 VAULT_VERSION=0.10.1 ZOOKEEPER_VERSION=3.4.10 RANCHER_VERSION=0.6.0
services:
- redis
before_install:
# install consul
- wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
- unzip consul_${CONSUL_VERSION}_linux_amd64.zip
- sudo mv consul /bin/
- consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul -bind 127.0.0.1 &
# install etcd
- wget https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz
- tar xzf etcd-v${ETCD_VERSION}-linux-amd64.tar.gz
- sudo mv etcd-v${ETCD_VERSION}-linux-amd64/etcd /bin/
- sudo mv etcd-v${ETCD_VERSION}-linux-amd64/etcdctl /bin/
- unset ETCD_VERSION
- etcd &
# install DynamoDB
- sudo pip install awscli
- mkdir /tmp/dynamodb
- wget -O - https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_${DYNAMODB_VERSION}.tar.gz | 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/v${RANCHER_VERSION}/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/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip
- unzip vault_${VAULT_VERSION}_linux_amd64.zip
- sudo mv vault /bin/
- vault server -dev &
# Install zookeeper
- wget http://www.eu.apache.org/dist/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz
- tar xzf zookeeper-${ZOOKEEPER_VERSION}.tar.gz
- mkdir /tmp/zookeeper && cp integration/zookeeper/zoo.cfg zookeeper-${ZOOKEEPER_VERSION}/conf/zoo.cfg
- zookeeper-${ZOOKEEPER_VERSION}/bin/zkServer.sh start
# Run AWS SSM mocking server
- go run ./integration/ssm/main.go &
install:
- make build
- sudo make install
script:
- make test
- make integration