-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 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
# -*- yaml -*-
language: go
env:
global:
# http://pkg-go.alioth.debian.org/packaging.html
- VERSION="${TRAVIS_TAG:=0.0~git$(date +%Y%m%d)-1}"
- PKG_URL="https://github.com/go-dedup/fsimilar"
- PKG_CAT=utils
- PKG_ARCH=amd64
- PKG_DESC="find/file similar"
- PKG_VEND="go-dedup"
- PKG_MAINT="Tong Sun <suntong@cpan.org>"
- PKG_LICNS="MIT"
go:
- 1.9
script:
- go get -t -v ./...
- go build -v
- go test -v ./...
- ( cd test; ./shell_test.sh )
- go get github.com/mitchellh/gox
- gox -osarch="linux/386 linux/amd64 darwin/amd64" -output="out/{{.Dir}}-{{.OS}}-{{.Arch}}"
# linux/386 linux/amd64 linux/arm darwin/amd64 darwin/386 windows/amd64 windows/386
before_deploy:
- gem install fpm --no-document
- make pkg
- sed -i -e "s/\$VERSION/$VERSION/" bintray-pkg.json
- sed -i -e "s/\$DATE/$(date +%Y-%m-%d)/" bintray-pkg.json
deploy:
- provider: bintray
user: suntong
key: ${BINTRAY_API_KEY}
file: bintray-bin.json
skip_cleanup: true
- provider: bintray
user: suntong
key: $BINTRAY_API_KEY
file: bintray-pkg.json
skip_cleanup: true
on:
# tags: true