-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.travis.yml
64 lines (50 loc) · 1.23 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
language: go
os:
- linux
go:
- "1.11.1"
sudo: required
services:
- docker
go_import_path: github.com/hunterlong/tokenbalance
cache:
directories:
- $GOPATH/pkg/dep
- ~/.cache
- $GOPATH/src/github.com/hunterlong/tokenbalance/vendor
before_deploy:
- git config --local user.name "hunterlong"
- git config --local user.email "info@socialeck.com"
- make tag
deploy:
provider: releases
api_key: $GH_TOKEN
file:
- "build/tokenbalance-osx-x64.tar.gz"
- "build/tokenbalance-osx-x32.tar.gz"
- "build/tokenbalance-linux-x64.tar.gz"
- "build/tokenbalance-linux-x32.tar.gz"
- "build/tokenbalance-linux-arm7.tar.gz"
- "build/tokenbalance-linux-arm64.tar.gz"
- "build/tokenbalance-linux-alpine.tar.gz"
- "build/tokenbalance-windows-x64.zip"
- "build/tokenbalance-windows-x32.zip"
skip_cleanup: true
branches:
except:
- /^v\d/
before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
before_script:
- make dev-deps
- make dep
script:
- make install
- make test
- make coverage
after_success:
- travis_wait 30 docker pull karalabe/xgo-latest
- make release
after_deploy:
- make publish