-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
46 lines (39 loc) · 2.6 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
language: go
go:
- "1.10"
- "1.9"
- "1.8"
sudo: false
before_install:
- go get -v github.com/Masterminds/glide
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout 3e13fd16ed5b0808ba0fb2e4bd98eb325ccde0a1 && go install && cd -
install:
- glide install
script:
- make test
- make build
before_deploy:
- mkdir -p bin_release
- GOOS=linux GOARCH=amd64 go build -o bin_release/gocube_linux-amd64 -ldflags="-X main.AppVersion=$TRAVIS_TAG"
- GOOS=darwin GOARCH=amd64 go build -o bin_release/gocube_darwin-amd64 -ldflags="-X main.AppVersion=$TRAVIS_TAG"
- GOOS=windows GOARCH=386 go build -o bin_release/gocube_win-i386.exe -ldflags="-X main.AppVersion=$TRAVIS_TAG"
- GOOS=windows GOARCH=amd64 go build -o bin_release/gocube_win-amd64.exe -ldflags="-X main.AppVersion=$TRAVIS_TAG"
- mkdir -p archives
- mkdir bin_release/gocube-win-i386-$TRAVIS_TAG && cp -a ttf/ bin_release/gocube_win-i386.exe bin_release/gocube-win-i386-$TRAVIS_TAG
- mkdir bin_release/gocube-win-amd64-$TRAVIS_TAG && cp -a ttf/ bin_release/gocube_win-amd64.exe bin_release/gocube-win-amd64-$TRAVIS_TAG
- mkdir bin_release/gocube-linux-amd64-$TRAVIS_TAG && cp -a ttf/ bin_release/gocube_linux-amd64 bin_release/gocube-linux-amd64-$TRAVIS_TAG
- mkdir bin_release/gocube-darwin-amd64-$TRAVIS_TAG && cp -a ttf/ bin_release/gocube_darwin-amd64 bin_release/gocube-darwin-amd64-$TRAVIS_TAG
- cd bin_release && zip -r ../archives/gocube-win-i386-${TRAVIS_TAG}.zip gocube-win-i386-${TRAVIS_TAG} && cd -
- cd bin_release && zip -r ../archives/gocube-win-amd64-${TRAVIS_TAG}.zip gocube-win-amd64-${TRAVIS_TAG} && cd -
- cd bin_release && zip -r ../archives/gocube-linux-amd64-${TRAVIS_TAG}.zip gocube-linux-amd64-${TRAVIS_TAG} && cd -
- cd bin_release && zip -r ../archives/gocube-darwin-amd64-${TRAVIS_TAG}.zip gocube-darwin-amd64-${TRAVIS_TAG} && cd -
deploy:
provider: releases
api_key:
secure: iu/qI3stGeAOCqiYsS5zso7kmYTV2whDgRLDEYCPFdERODvN6xu8TGLGCrvE0Ot/+exYNebKmLlHKydEoi9tumelXbt8pvNe7wkOxSuGfiCfLOMqIvnEuklRKVWTTHEbrbnNgZIKPjCZM7baGKje2sDu66pvQPNVo3CoLt+a9CwOPnycKuRV/dS6r/VVG/QvxyQhSoZIM4fPQxymf1/t2J1u7h32hjW+qFxV6aZiy1T+gMc05wjSxeG/PI3MlHxeLldM0N301DsXzNOofH9kKo9R0Q/EIbEPDDAZcn02fSnozL0qSr9gMz3tm4Hs0M2A+AcWNq5d4HopsOf44zv8WIuInDmFGU1k1tPoGL3AonXAZ/9PhPbk9pg7EITVHj3DUHiSUjLs7yRT8JiNaYucFQKDU1PkowpoiAkaBv0JsMreTuhb5vNagLme1RqCJElzjOGiFkpAG054mdi/jzXqse2r57OTIacj3Fo4YASu288ivkc18BU5czj2WbcPRbpStx80G8pQ0KN+u5UVj5yX4QvEgvR3hDvC/uQmNYW3cBYsksXl2kl//b/nFRRcEuVnqWmiATdIQGU7Igx0t2JgT97OL8wxBWK9LNZ689D07DQVe2dafVZbReStodEf+SIOZETUjbOQDRwGhOk8zqxEoU4PeWwV14vQBHFqfVbWn78=
file_glob: true
file: archives/*
skip_cleanup: true
on:
tags: true
go: "1.10"