-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (44 loc) · 1.13 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
os:
- linux
language: go
go:
- "1.10.x"
install: true
sudo: required
services:
- docker
env:
- VERSION=0.1
matrix:
allow_failures:
- go: master
fast_finish: true
before_deploy:
- git config --local user.name "hunterlong"
- git config --local user.email "info@socialeck.com"
- git tag "v$VERSION" --force
deploy:
- provider: releases
api_key: $GH_TOKEN
file:
- "build/example-osx-x64.tar.gz"
- "build/example-osx-x32.tar.gz"
- "build/example-linux-x64.tar.gz"
- "build/example-linux-x32.tar.gz"
- "build/example-linux-arm64.tar.gz"
- "build/example-linux-arm7.tar.gz"
- "build/example-linux-alpine.tar.gz"
skip_cleanup: true
notifications:
email: false
before_script:
- go get github.com/stretchr/testify/assert
- go get golang.org/x/tools/cmd/cover
- go get github.com/rendon/testcli
- go get github.com/karalabe/xgo
- go get github.com/hunterlong/statup
- go get
script:
- statup version
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then travis_wait 30 docker pull karalabe/xgo-latest; fi
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then .travis/build.sh; fi