Skip to content

Commit d9007ee

Browse files
committed
travis: update travis.yml, setup automatic deployment with travis
1 parent 49c2dfa commit d9007ee

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.travis.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,29 @@ os:
55
- osx
66

77
go:
8-
- 1.6.2
8+
- 1.7.5
9+
- 1.6.4
910
- 1.5.4
1011

1112
script:
13+
- make
1214
- make gotest
15+
16+
before_deploy:
17+
- export DEPLOY_TARGET=redis-port-${TRAVIS_TAG}-go${TRAVIS_GO_VERSION}-${TRAVIS_OS_NAME}
18+
- mv bin ${DEPLOY_TARGET}
19+
- zip -r ${DEPLOY_TARGET}.zip ${DEPLOY_TARGET} && tar -czvf ${DEPLOY_TARGET}.tar.gz ${DEPLOY_TARGET}
20+
21+
deploy:
22+
provider: releases
23+
overwrite: true
24+
api_key:
25+
secure: lN7Ub0c46tBBaLgo6WxxVZYbcmygNnWxv6bPrLJ1GOgm0cEwwJJfcyRbmjc46IrEiI8jeT7zuoywlKYl0ARdHT1LlXO/eiIGB4FgHBg6TFRVFsDv9BuNNpM8IPbgAqeZjUju0+s5AoG/kWfjV70QyKcima9VMxhCGNZLlzwGvjs=
26+
file:
27+
- ${DEPLOY_TARGET}.zip
28+
- ${DEPLOY_TARGET}.tar.gz
29+
skip_cleanup: true
30+
on:
31+
repo: CodisLabs/redis-port
32+
tags: true
33+
go: '1.7.5'

0 commit comments

Comments
 (0)