代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。