-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
39 lines (34 loc) · 1.66 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
language: go
go:
- 1.x
script: bash ./travis.bash
before_deploy:
- mkdir release
- cp README.md README.txt
- 'GOARCH=386 GOOS=linux go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT\"" -o etcddir; tar -zcf release/etcddir-linux-i386.tar.gz etcddir README.txt'
# - 'GOARCH=amd64 GOOS=linux go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT\"" -o etcddir; tar -zcf release/etcddir-linux-amd64.tar.gz etcddir README.txt'
# - 'GOARCH=386 GOOS=freebsd go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT\"" -o etcddir; tar -zcf release/etcddir-freebsd-i386.tar.gz etcddir README.txt'
# - 'GOARCH=amd64 GOOS=freebsd go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT\"" -o etcddir; tar -zcf release/etcddir-freebsd-amd64.tar.gz etcddir README.txt'
- unix2dos -n README.md README.txt
- 'GOARCH=386 GOOS=windows go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT\"" -o etcddir.exe; zip release/etcddir-windows-i386.zip etcddir.exe README.txt'
# - 'GOARCH=amd64 GOOS=windows go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT\"" -o etcddir.exe; zip release/etcddir-windows-amd64.zip etcddir.exe README.txt'
addons:
apt:
packages:
- dos2unix
deploy:
skip_cleanup: true
tags: true
provider: releases
on:
repo: rekby/etcddir
tags: true
go: 1.x
api_key: $GITHUB_TOKEN
file:
- "release/etcddir-linux-i386.tar.gz"
# - "release/etcddir-linux-amd64.tar.gz"
# - "release/etcddir-freebsd-i386.tar.gz"
# - "release/etcddir-freebsd-amd64.tar.gz"
- "release/etcddir-windows-i386.zip"
# - "release/etcddir-windows-amd64.zip"