forked from jedisct1/piknik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
117 lines (95 loc) · 3.38 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
sudo: false
language: go
os:
- linux
go:
- 1.x
script:
- echo $TRAVIS_GO_VERSION
- go get -v -u github.com/golang/dep/cmd/dep
- dep ensure
- ./test.sh
- go clean
- env GOOS=plan9 go build
- go clean
- env GOOS=solaris go build
- go clean
- env GOOS=windows GOARCH=386 go build
- mkdir win32
- ln piknik.exe win32/
- zip -9 -r piknik-win32-${TRAVIS_TAG:-dev}.zip win32
- go clean
- env GOOS=windows GOARCH=amd64 go build
- mkdir win64
- ln piknik.exe win64/
- zip -9 -r piknik-win64-${TRAVIS_TAG:-dev}.zip win64
- go clean
- env GOOS=openbsd GOARCH=386 go build
- mkdir openbsd-i386
- ln piknik openbsd-i386/
- tar czpvf piknik-openbsd_i386-${TRAVIS_TAG:-dev}.tar.gz openbsd-i386
- go clean
- env GOOS=openbsd GOARCH=amd64 go build
- mkdir openbsd-amd64
- ln piknik openbsd-amd64/
- tar czpvf piknik-openbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz openbsd-amd64
- go clean
- env GOOS=freebsd GOARCH=386 go build
- mkdir freebsd-i386
- ln piknik freebsd-i386/
- tar czpvf piknik-freebsd_i386-${TRAVIS_TAG:-dev}.tar.gz freebsd-i386
- go clean
- env GOOS=freebsd GOARCH=amd64 go build
- mkdir freebsd-amd64
- ln piknik freebsd-amd64/
- tar czpvf piknik-freebsd_amd64-${TRAVIS_TAG:-dev}.tar.gz freebsd-amd64
- go clean
- env GOOS=dragonfly GOARCH=amd64 go build
- mkdir dragonflybsd-amd64
- ln piknik dragonflybsd-amd64/
- tar czpvf piknik-dragonflybsd_amd64-${TRAVIS_TAG:-dev}.tar.gz dragonflybsd-amd64
- go clean
- env GOOS=netbsd GOARCH=386 go build
- mkdir netbsd-i386
- ln piknik netbsd-i386/
- tar czpvf piknik-netbsd_i386-${TRAVIS_TAG:-dev}.tar.gz netbsd-i386
- go clean
- env GOOS=netbsd GOARCH=amd64 go build
- mkdir netbsd-amd64
- ln piknik netbsd-amd64/
- tar czpvf piknik-netbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz netbsd-amd64
- go clean
- env GOOS=linux GOARCH=386 go build
- mkdir linux-i386
- ln piknik linux-i386/
- tar czpvf piknik-linux_i386-${TRAVIS_TAG:-dev}.tar.gz linux-i386
- go clean
- env GOOS=linux GOARCH=amd64 go build
- mkdir linux-x86_64
- ln piknik linux-x86_64/
- tar czpvf piknik-linux_x86_64-${TRAVIS_TAG:-dev}.tar.gz linux-x86_64
- go clean
- env GOOS=linux GOARCH=arm go build
- mkdir linux-arm
- ln piknik linux-arm/
- tar czpvf piknik-linux_arm-${TRAVIS_TAG:-dev}.tar.gz linux-arm
- go clean
- env GOOS=darwin GOARCH=amd64 go build
- mkdir macos
- ln piknik macos/
- tar czpvf piknik-macos-${TRAVIS_TAG:-dev}.tar.gz macos
- ls -l piknik-*.tar.gz piknik-*.zip
deploy:
provider: releases
api_key:
secure: jtXaCwUY+LlovLJQgT+V2lDYvW/dHRWHZGiZLReJP19GA1x0aAFTzRBeESbvJ92lYu5HGOL6nmFUKn8Fl+HQ8kocK2bTE16AnvBxtLIgmOElHA2W+dIiJnIl7EfG9kNxzV75eGcH/YN+Skqwq95XmTsn9TvFhIPTcY1WuoV239fqS+rcDg3zdr0uM/kcYbyO7OFkvKU4ewTx5QoDJVgLDQo2fnPtGVsPr0M8XSFpTlfpmpJzEOS30aEOE18qKZaz/suNDO4Zgya7O374xQbY6WTiChpUMTTwQRuiExj3/8soSRPWXazZrHdkX+2My6gaZEslVRdCa4CUP6tPJoIX4b5Dmi3+WkYRkeUNNqpP+m26nV9PapQqg7S5K5lXjfaCkGGZLg/wLhtjeuGdk6H1+bbyPprxdXhplBV7yzDyjNWcbFFruOcvsuks9zBYIelR9dlFiIb33gq/zsams7usZNERvisR3bBLecH9qdxcimp/DB+tEN4i8aNGz+dYmHvWBAxNw+GjGiSs6wnZrJtqex1Q2j5ngSLDgMDiSHamd0m/yQjnN5jKklIIEgIhaS+jp50Qi3mMmnv03KvLbulmLkfh/vQ612F+gH/N+UbtDeva5SPGH4I/X01gJoHGGbXVmqlv2F1cwkFnWbY50kGIaHOLQFsWxUzjyBXPVXItRxQ=
file:
- piknik-*.tar.gz
- piknik-*.zip
file_glob: true
skip_cleanup: true
on:
repo: jedisct1/piknik
tags: true
after_deploy:
- ls -l piknik-*.tar.gz