-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 2.7 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
sudo: required
services:
- docker
language: go
go:
- tip
env:
global:
- MYAPP=commit
- MYEMAIL=mh-cbon@users.noreply.github.com
- secure: b4lW50/NXrnpykg0+G17dTVmHsXjdl5S0lBT6inQE/kFMF4z9XJmw6XmAyM6r53h8YUS/jbF6nrKK7xEZfA+V2eXL//w6kleZ0yCSB0rNW5b9cl8OGlgv2jCoDFhhApX/Qe2mKYSiVbJFPO+pUfS27V0bs//jIwO+OKfZrpdi0wGxkbQwgVcWbjcQ6Vy+CAjHR/Z33wFLB1qgIJfRE4SAU92lhdQscWZcKgPYoPj0JZiHtZh1uYIIF/xLZ0oHBmRpxRFfgSI0Dhy9QlZw1ugz8SIKfJ8loV54GTve8D8spC5Huat9yepMo1/BtKUuohuCgA71OLY9Xjf6tU4VpsPLL0U73KazkWFva9N7LqDJQGNoVmWoNazmahtyn01KvO1PFOiW9vwOP+AIqNfuv06Pi1ual7fBkuHzOAkL4hOc+1AQkGdwmpvV2L2WB9nTob5rJKVw0KM10B7G5NNTdtyWSBjqwmIdYKmggbznuN7vqScK47ARSByWI1HafZAb49/9NHMgNnrVQTa0E8Hx5YbqURJkgbTsUJyEVu8ACDQOJUFAI1zmB1jajNwUnAvUuLSKKip0i17Uyr1Anb9nVf6MbSREz0p5co7BlX7Ll7XH26oyhENalqx4DP9EZqxvMym43oYq8B+SWWdpC4NLqgbdEaTVhaYFBv95AQX/w7S94s=
before_install:
- sudo apt-get -qq update
- mkdir -p ${GOPATH}/bin
- cd ~
- curl https://glide.sh/get | sh
install:
- cd $GOPATH/src/github.com/mh-cbon/$MYAPP
- glide install
- go install
script: echo "pass"
before_deploy:
- mkdir -p build/{386,amd64}
- mkdir -p pkg-build/{386,amd64}
- GOOS=linux GOARCH=386 go build --ldflags "-X main.VERSION=${TRAVIS_TAG}" -o build/386/$MYAPP main.go
- GOOS=linux GOARCH=amd64 go build --ldflags "-X main.VERSION=${TRAVIS_TAG}" -o build/amd64/$MYAPP main.go
- curl -L https://raw.githubusercontent.com/mh-cbon/go-bin-deb/master/create-pkg.sh | GH=mh-cbon/$MYAPP sh -xe
- curl -L https://raw.githubusercontent.com/mh-cbon/go-bin-rpm/master/create-pkg.sh | GH=mh-cbon/$MYAPP sh -xe
after_deploy:
- curl -L https://raw.githubusercontent.com/mh-cbon/go-bin-deb/master/setup-repository.sh | GH=mh-cbon/$MYAPP EMAIL=$MYEMAIL sh -xe
- curl -L https://raw.githubusercontent.com/mh-cbon/go-bin-rpm/master/setup-repository.sh | GH=mh-cbon/$MYAPP EMAIL=$MYEMAIL sh -xe
deploy:
provider: releases
api_key:
secure: r2mCTdasDH9TFjt7ZnUL9kqOQwE6u3W/ZwEw3+igGuNBQxpddxgJQfzTgScu6//mBMb7uUy4tgDMrNdt6LXRnorKpLsvje4cbftuSGGmzeLfbFyzqfD5jxBJAQGNQGbBp+YUy1YW0JmuwZXBfiGIDFYbjctPTflBD6xRX0Qht19XPj/t5fSYXSaxTuNGxVYB438ijibAHlO+RzBq8HTNUsGgNmoE6fSzXsxG7rutPXMPd/t0qpSVnU/i6ACskVZrCSn42lWHB/K9hplbVzZr06WbFGIArAfCkyO6giKqkwpOqs1fX2qG57ZW7p17ih9gwLtaMFzq5iqvxnaxnGoCelLGo52tGnd3NM6spNrUtuSjD1ZZwPMI54IVQr+PhY0wdarmgvcc6bQ0e9ap3S5UozEkRq3b9k3A9ZroS6iipUGWg7QIhGK5fApfQyMtA1vDYw04S6BAmWe6uCh7Xx1nXueCHSp45H/1o7l7W87fvNddp+ehaml84K4gkRBBQbUmYNPEGUM0UZeKHBdNaT+j5lDzrFviSIATSSYZyOHjxVAgNkr4NgkmvmGn0GetEHFFunMaFDnldyXDf2u8GapzKBlboVZEogCvgjbQQ7naJeAJ7AQp5Kln8p1E4HosRzZ60E6IV5GyQxTRDQyqR+aUCPPddI4tveftqp4smzF0sKw=
file_glob: true
file:
- $MYAPP-386.deb
- $MYAPP-amd64.deb
- $MYAPP-386.rpm
- $MYAPP-amd64.rpm
skip_cleanup: true
on:
tags: true