This repository has been archived by the owner on Oct 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
43 lines (39 loc) · 2.44 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
language: go
env:
- GO111MODULE=on GOFLAGS=-mod=vendor
go:
- "1.11"
script: echo "Deploy only, tested on own gitlab becouse travis incoming connect restrictions."
before_deploy:
- mkdir release
- cp README.md README.txt
- 'GOARCH=386 GOOS=linux go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=linux-i386\"" -o lets-proxy && tar -zcf release/lets-proxy-linux-i386.tar.gz lets-proxy README.txt'
- 'GOARCH=amd64 GOOS=linux go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=linux-amd64\"" -o lets-proxy && tar -zcf release/lets-proxy-linux-amd64.tar.gz lets-proxy README.txt'
- 'GOARCH=arm GOOS=linux go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=linux-arm\"" -o lets-proxy && tar -zcf release/lets-proxy-linux-arm.tar.gz lets-proxy README.txt'
- 'GOARCH=386 GOOS=freebsd go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=freebsd-i386\"" -o lets-proxy && tar -zcf release/lets-proxy-freebsd-i386.tar.gz lets-proxy README.txt'
- 'GOARCH=amd64 GOOS=freebsd go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=freebsd-amd64\"" -o lets-proxy && tar -zcf release/lets-proxy-freebsd-amd64.tar.gz lets-proxy README.txt'
- 'GOARCH=arm GOOS=freebsd go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=freebsd-arm\"" -o lets-proxy && tar -zcf release/lets-proxy-freebsd-arm.tar.gz lets-proxy README.txt'
- unix2dos -n README.md README.txt
- 'GOARCH=386 GOOS=windows go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=windows-i386\"" -o lets-proxy.exe && zip release/lets-proxy-windows-i386.zip lets-proxy.exe README.txt'
- 'GOARCH=amd64 GOOS=windows go build --ldflags "-X \"main.VERSION=$TRAVIS_TAG commit $TRAVIS_COMMIT os=windows-amd64\"" -o lets-proxy.exe && zip release/lets-proxy-windows-amd64.zip lets-proxy.exe README.txt'
addons:
apt:
packages:
- dos2unix
deploy:
skip_cleanup: true
tags: true
provider: releases
on:
repo: rekby/lets-proxy
tags: true
api_key: $GITHUB_TOKEN
file:
- "release/lets-proxy-linux-i386.tar.gz"
- "release/lets-proxy-linux-amd64.tar.gz"
- "release/lets-proxy-linux-arm.tar.gz"
- "release/lets-proxy-freebsd-i386.tar.gz"
- "release/lets-proxy-freebsd-amd64.tar.gz"
- "release/lets-proxy-freebsd-arm.tar.gz"
- "release/lets-proxy-windows-i386.zip"
- "release/lets-proxy-windows-amd64.zip"