forked from kelseyhightower/confd
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
66 lines (65 loc) · 3.8 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: go
go:
- '1.11'
env:
global:
- VAULT_ADDR='http://127.0.0.1:8200'
- secure: wd1/b5bkyTDXdroN6LHux9suA+rFmfG4MwT3oqE2fC5RBi89rfwob7EJP6XkIvupUPWWjMfP/X7EQWLz7zlxpmUyAbqElwJSK3WxpXL6gntNaDmiJGiECx5ayQM8LIXcnQzGefyaBliSBuJrbICFRDRLyMWEeoAhR8RHyK3lzVIKkEbQ7h78DgKaNwmafxvuWmIvzPp1sveE/7sHidBiJH1rxsIbrlgn8KqlkhZxAS0OVuR8twfm62+W/gYkg/jAt0qpiJV5U3+D5Y5olRIFt8J0uz2jLpVaIswUVpHkXKv5tDhRdLPPwBm/HPqsQdw0yJYy9W8OD6FL40rjsJbKeQl62SsMvy+WEYK29dcBfuP34lN++Yfin980HAhz26vSSiTIre4G7uEf4aHqcNXNE7y73KH5oMF+GMbmxHBQIAPUxQhJ1Z/VZIQZGLMNf+9zv+BPoMToO6lXczZk2cUS8agHY/uHnP62tyEjkARc89244DzC54nGqCVPgVbKEaXbZeb4BypzlSeCKUJ21UX/LM+H3JBV/MzDVE5G5drHRJcDvH0w5BnnZLyuizP85w6OJbtLy5/330iq6aor/PI7MFNssHRGXiIrqd3MUbmHEsQ84JL6Cq4cPpya7R9ksMGCDnKguZA0Ls2RGJXp4lr5ALtPT5H/2QXiB04K359M2JU=
services:
- redis
- docker
before_install:
- wget https://github.com/yunify/metad/releases/download/v1.2.1/metad-linux-amd64.tar.gz
- tar -zxvf metad-linux-amd64.tar.gz
- sudo mv metad /bin/
- echo $PWD
- mkdir -p $GOPATH/src/github.com/kelseyhightower/
- mv $GOPATH/src/github.com/yunify/confd $GOPATH/src/github.com/kelseyhightower/
- cd $GOPATH/src/github.com/kelseyhightower/confd/
- echo $PWD
install:
- sudo pip install awscli
- go get golang.org/x/tools/cmd/cover
- "./build"
- sudo ./install
script:
- "./test"
- bash integration/metad/test.sh
before_deploy:
- "./release"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: qFVfJ0O7GvtbtlOK095eDj3ylsBlSoSYuByaGWD274aG2Mgax2y1gvatQhU/a2G0OWh/ch1Ruo1mvKM37EucS/2xjXhXgovQfFaaANo10HjQCd31iHJ8w3ICaIFb7VSB900Ko/XtoA472wKtllmIa0nnXU72LCYjWTcUFosYUfY/XRgvuShcrmLo/1qRqFJVen0UoV3pKe0wkCZ+ajmUCBUr3v3cInSEhlrIItoelrv5vmnXJtR5WM7WWuLK1dJbwVEvIl7Y/xc8ONapoS/wmyvHa1yk12CKugpU19+Q4gwc8jCxp/EF7h5FZzhuyvB7izxrEMy6NdfQoXZwou38YSWR/Tw5qK7XHg3e1usMoRL3I7kpm+gxUsNPTQN/IY04nclew0TSw3S8cxINIDWdjH1wyOzVvKD2+FUZ4iNPJP1jLfYl7Q9X0sLLOGe0QuU6nqHD+A8nS9zG6LIgd3BJVefTzGE4fUiZ671ceUiU6Jgom/zozQ7drpbESR64F/PyTBJ8omAmI93dhOhjOCANufkS6QTU9wWjhwFgAkjBPHylbJiS6cnASO0BbqHH5IT5vtYENGLPITkzqhAdxrbQpITe+HofDNdwWSQcbNanhkgnioBJqJnZjAamrpmSa0BpJxa/g34NurvDeASSEouPbmZvinEJo6bOiEFQ42saj7w=
file:
- bin/linux/confd-linux-amd64.tar.gz
- bin/arm64/confd-linux-arm64.tar.gz
- bin/darwin/confd-darwin-amd64.tar.gz
- bin/alpine/confd-alpine-amd64.tar.gz
- bin/windows/confd-windows-386.zip
on:
repo: yunify/confd
tags: true
after_deploy:
- git config --global user.name 'chilianyi'
- git config --global user.email [email protected]
- git clone https://github.com/qingCloudAppcenter/appcenteragent
- cp -f bin/windows/confd.exe appcenteragent/app-agent-windows-386/bin/confd.exe
- cp -f bin/linux/confd appcenteragent/app-agent-linux-amd64/bin/confd
- cp -f bin/arm64/confd appcenteragent/app-agent-linux-arm64/bin/confd
- cd appcenteragent; git add .; git commit -m "update confd"; git push --quiet "https://${GITHUB_TOKEN}@github.com/QingCloudAppcenter/AppcenterAgent" master:master; cd ..
- git clone https://github.com/yunify/docker-images.git
- cd docker-images; sed -i "s/CONFD_VERSION=.*/CONFD_VERSION=$TRAVIS_TAG/g" confd/Dockerfile; sed -i "s/CONFD_VERSION=.*/CONFD_VERSION=$TRAVIS_TAG/g" confd/env.sh; cd ..
- cd docker-images; sed -i "s/confd-.*/confd-$TRAVIS_TAG/g" jdk/push.sh; sed -i "s/confd-.*/confd-$TRAVIS_TAG/g" jdk/build.sh; sed -i "s/confd:.*/confd:$TRAVIS_TAG/g" jdk/Dockerfile; cd ..
- cd docker-images; git add .; git commit -m "update confd"; git push --quiet "https://${GITHUB_TOKEN}@github.com/yunify/docker-images" master:master; cd ..
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin dockerhub.qingcloud.com
- cd docker-images/confd; ./build.sh && ./push.sh; cd ../..
- cd docker-images/jdk; ./build.sh && ./push.sh; cd ../..
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/fbff60722b1e98fcdb93
on_success: change
on_failure: always
on_start: never