forked from CodisLabs/codis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (29 loc) · 851 Bytes
/
.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
language: go
os:
- linux
- osx
go:
- 1.11.x
- 1.10.x
- 1.9.x
- 1.8.x
script:
- make
- make gotest
before_deploy:
- export DEPLOY_TARGET=codis${TRAVIS_TAG}-go${TRAVIS_GO_VERSION}-${TRAVIS_OS_NAME}
- mv bin ${DEPLOY_TARGET}
- zip -r ${DEPLOY_TARGET}.zip ${DEPLOY_TARGET} && tar -czvf ${DEPLOY_TARGET}.tar.gz ${DEPLOY_TARGET}
deploy:
provider: releases
overwrite: true
api_key:
secure: RKVkoCwNJej19d6KbgpxkwJ9H3bu0icS895G9BkaytUjRVO129S93L4xpHRfeIyySZNVrd4P/le01JIJ6/Fl89wKCc/5oX07aFo6l0w/+JKxSn33FsGh8pGTg5wt9Vm5aqccB6lbkylwKrvDUOwuJCbzMva8f1YrWv0a+3I6JKU=
file:
- ${DEPLOY_TARGET}.zip
- ${DEPLOY_TARGET}.tar.gz
skip_cleanup: true
on:
repo: CodisLabs/codis
tags: true
condition: $TRAVIS_GO_VERSION =~ ^1\.(1[0-9]|[8-9])\.[0-9]+$