forked from rchunping/TcpRoute2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (58 loc) · 2.55 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
language: go
go:
- 1.12
- tip
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- cd ../..
- mv GameXG gamexg
- cd gamexg/TcpRoute2
-
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
before_deploy:
- sudo apt-get -qq update
- sudo apt-get install -y dos2unix
- wget https://github.com/GameXG/TcpRoute2/releases/download/WindowsGuiV0.5.2/TcpRoute2Windows.exe
- wget https://github.com/GameXG/TcpRoute2/releases/download/WindowsGuiV0.5.2/TcpRoute2Windows.exe.config
- GOARCH=arm GOOS=linux go build -o TcpRoute2-linux-arm
- GOARCH=386 GOOS=linux go build -o TcpRoute2-linux-386
- GOARCH=386 GOOS=darwin go build -o TcpRoute2-darwin-386
- GOARCH=386 GOOS=windows go build -o TcpRoute2-windows-386.exe
- GOARCH=amd64 GOOS=linux go build -o TcpRoute2-linux-amd64
- GOARCH=amd64 GOOS=darwin go build -o TcpRoute2-darwin-amd64
- GOARCH=amd64 GOOS=windows go build -o TcpRoute2-windows-amd64.exe
- mv README.md README.txt
- zip -r TcpRoute2-linux-arm.zip TcpRoute2-linux-arm config.toml.example README.txt
- zip -r TcpRoute2-linux-386.zip TcpRoute2-linux-386 config.toml.example README.txt
- zip -r TcpRoute2-darwin-386.zip TcpRoute2-darwin-386 config.toml.example README.txt
- zip -r TcpRoute2-linux-amd64.zip TcpRoute2-linux-amd64 config.toml.example README.txt
- zip -r TcpRoute2-darwin-amd64.zip TcpRoute2-darwin-amd64 config.toml.example README.txt
- unix2dos config.toml.example README.txt
- zip -r TcpRoute2-windows-386.zip TcpRoute2-windows-386.exe config.toml.example README.txt
- zip -r TcpRoute2-windows-amd64.zip TcpRoute2-windows-amd64.exe config.toml.example README.txt
- cp TcpRoute2-windows-amd64.exe TcpRoute2.exe
- zip -r TcpRoute2-windows-gui-amd64.zip TcpRoute2.exe config.toml.example TcpRoute2Windows.exe TcpRoute2Windows.exe.config README.txt
- rm TcpRoute2.exe
- cp TcpRoute2-windows-386.exe TcpRoute2.exe
- zip -r TcpRoute2-windows-gui-386.zip TcpRoute2.exe config.toml.example TcpRoute2Windows.exe TcpRoute2Windows.exe.config README.txt
deploy:
provider: releases
api_key: $CI_USER_TOKEN
skip_cleanup: true
file:
- TcpRoute2-linux-arm.zip
- TcpRoute2-linux-386.zip
- TcpRoute2-darwin-386.zip
- TcpRoute2-windows-386.zip
- TcpRoute2-linux-amd64.zip
- TcpRoute2-darwin-amd64.zip
- TcpRoute2-windows-amd64.zip
- TcpRoute2-windows-gui-386.zip
- TcpRoute2-windows-gui-amd64.zip
on:
tags: true
all_branches: true
go: 1.12