Permalink
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (57 sloc) 2.52 KB
language: go
go:
- 1.5
- 1.6
- 1.7
- 1.8
- 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
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.7