-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.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=rm-glob
- MYEMAIL=mh-cbon@users.noreply.github.com
- secure: RsQPtsVSMdjX9/Hqzb6F4kje+YHcX9yReSQLPqF7oMBT8Slqw3/HyBjT4VKWUKwL1q1EFI9dV2z3HHJhLsitpmt2EojU9fy9+NvWRqWjnjKEcPJhfu9kyeCGmRk7ysinY6QsmL8r+ChjChHCRcpq70BipoGoukGZmm0Ofvb54imB/RB0M0PjY48+GSBJWwFLdmRV07XY7QjM6jD04EF+Eo9t5ix+F60xV0WD4M9EwbkV3CSnijWcEKHvt1EMnuPUUdUiNd2sxUmYLByNhUIhGuixdPPqTDilm6fYK7bKfA3eLT4fJHg4kUq+yZSzDE6xaEzTLU/VPW04PlGIOEq9eqm5BxUOquGnU9CK2jADZ+M1eLC03FSqmHKeCee1sc2HUhSFu/jYlOMhzSyGlterCtlz0q4qHtaDGuPXwA7zPBD9Fsi7Tc9HK5kMMxWa2wzMrMQpG+xnKViuBZbtAMJRsLiWB9JnKIX+6J6v6+bzubfOx8LFie0O/CNP1P2NZMbQ2f24ht9JEVY6boqmKmkWpHhbWiITfOeyTWyiW+dZl5wihxFyxWBueZThkM5ff25LNtuZmsaM05PgB9/DZp9YohZGSVd1r+Y7GSoS25jnTQ7EJGvOATxYK+nCwRmR9aajZk0EyfMh2xAYAlrg4ehkFbcjgMGDHv0RCZRH/G32U6s=
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: liTa2j1nHVUJEpaHPtaGO79ZQuVHHHGazuGn0VcMSejaTHyJ+Pz4QRxcuSXlC7owDyQ+CWhMhSFoTIjN3DjKcndfya6WQAa48dUo7IkoiKThxS+rXUbGhi0MnCq4BsuSVuhUAMIeaBCGgVAPxa3RcUpx6SNW2WZI/7QfhLFHPHmMmFcnrS4CcoJ35qsCEhzSBeUIrwQVOwy7DfVImpZlQRSgn70PNUEGt0Xl4ntIs3YXI1JN3tWL31foANZEFRCxmGsuO11pXVEh9CxKGtNbuxDAspdvcD71llp02856kMup8oWz/8OY1kKmZ/w2eOFPYpHcLwdiMIX0DWSPYuHweq/kZwBynv6QAwTgVLUt72ZpcuPGKrTOpSPqs6flQMo+6tafSEptl15nHJRLUdeXjQaDzCimHsjgo8yeCwrrjKFtWvUCr++xSANTDrNPhykINMNguCczfIUIvR+JVQ9o+VItYsJqe2X5MZHVQDle5YqZK27t27TjbE7RIlPCIyTgIAKH1Vn4dS0nWuA9FEowVOOgsIpsK4yTTLAKVYEHJBzOIg+MeIXbT5R76bGoELrYJWfyfE0zOtQlB5sUj2YwFHtTS8OoQ8vDq7bR9vxhrS3EGXWV/LvQMNOSol+OB+xdNZ0ZlaOTz/MF1Fe4Gyeo6FMbggr2yjSnfLK3F1b2/1k=
file_glob: true
file:
- $MYAPP-386.deb
- $MYAPP-amd64.deb
- $MYAPP-386.rpm
- $MYAPP-amd64.rpm
skip_cleanup: true
on:
tags: true