-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
52 lines (48 loc) · 2.08 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
sudo: required
language: go
services:
- docker
go:
- 1.7
before_install:
- wget https://github.com/coreos/etcd/releases/download/v3.0.13/etcd-v3.0.13-linux-amd64.tar.gz
- tar xzf etcd-v3.0.13-linux-amd64.tar.gz
- sudo mv etcd-v3.0.13-linux-amd64/etcd /bin/
- etcd &
install:
- "./build"
- "sudo ./install"
- "pushd . ; cd tools && ./build ; popd"
script:
- "./test"
before_deploy:
- "./release"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: VlTP7AlzVV2PuCU+hRPMYW5H050PvMufxPLNmurqziDUlHSDmvyWZc6cEicdXbZNI7ANr9R6a+OYUjtZ/uteK6uMkKzMjfWjZCPtu0XXcp23N0ortFgsa4wvbRvC5lHOAdSjDXusCnPebeBfvGcphkws1Ps2Z3OfsfKEAKr5ZUNgI3z7T+wH38hIGrR4rSJoedkjWRmHzPYeJZFnfYezgI5LzfWYpFvf6CU0tIYJs8B2BqRoz/c9so1l6So7jeNd/yHDcAN6+hBxv7ruSRCzzHqyfUfBqT2JlaKZrTZygRc4Iu1pBqefJLLQYBB3DfoOTyAegkwS+hICQml2e1lvDX749k/UwNvmEDYptKp6F+OE7SXMIGxcnRL55Vv0l4nG1h5JFJFvTd0MU/jY33cI6p2uRgZ1LT4/jN737t+9FpM+i8+R0tdM0e9xZRrjpHChZqC9PdC6u0s1qyI02+8w9giNpH4MipgNRR3iXNrtya4bOF5VgYqM0kJTHyHtzoh1yyy+UtnW3W1EGDXkQPluHPM7kdo9xPWrWbxAV9idcZUNdpticnn+6WdFCdYT8hrcUZIiuTavlWhzvn+R2dH5bOSdLigS87KDK9oqPTvVW9FU6i9rVT/w+Y1dpwwhHJz+2H7vwgCKnktx9ZhMav09Xqjej88JwX3YKxc7WONny1g=
file:
- "bin/linux/metad-linux-amd64.tar.gz"
- "bin/darwin/metad-darwin-amd64.tar.gz"
- "bin/alpine/metad-alpine-amd64.tar.gz"
on:
repo: yunify/metad
tags: true
after_success:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
- docker build -t qingcloud/metad .
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker push qingcloud/metad;
else
echo $TRAVIS_BRANCH;
docker tag qingcloud/metad qingcloud/metad:$TRAVIS_BRANCH;
docker push qingcloud/metad:$TRAVIS_BRANCH;
fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/3aed79c82e90ed9496c7
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always