-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (36 loc) · 1.63 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
language: go
go:
- '1.15'
install:
- go mod tidy
- go build -v ./...
- GOOS=windows go get -u github.com/spf13/cobra
before_deploy:
- mkdir -p releases/linux
- mkdir -p releases/darwin
- mkdir -p releases/windows
- GOOS=linux GOARCH=amd64 go build -o releases/linux/hosts-override github.com/rcaught/hosts-override
- GOOS=darwin GOARCH=amd64 go build -o releases/darwin/hosts-override github.com/rcaught/hosts-override
- GOOS=windows GOARCH=amd64 go build -o releases/windows/hosts-override.exe github.com/rcaught/hosts-override
- cd releases/linux
- chmod +x hosts-override
- zip linux.zip hosts-override
- cd ../darwin
- chmod +x hosts-override
- zip macos.zip hosts-override
- cd ../windows
- zip windows.zip hosts-override.exe
- cd ../..
deploy:
provider: releases
skip_cleanup: true
overwrite: true
api_key:
secure: Cg7k/1VSYPjb+g+XF3cqiEIQiXAmscAsEeVdwYkabgfwITBNH8gOkg1rOjY/yvCzZBVkdci8QHn6e9NMdhDjOHaNz31YHIQPx0airJNjJYtwhW1Dh2+NLXZy9VoTJVwXut2PQD+naXN+UMoQ98SeLM9vptCHgIbZX0fSA6lbqn1xusG6d1e20kiSPqp3ZoAthj4qnoi+id5e0hW9J6/GVMLbbYYHrOO7FNRUtwNqojPLzpwyK3xBeLHoWuc5rhY5qehIpGMd4CfKmuzCb8Fkm41cEYyVkQHliCl/ZN3zfmMlPKESgWRNLcCh8jmhq1U1lhd3P/10EjdkeFZorCqITUZcZSAdDELthQPT64rNILfZccT1K4QxG082nHTBXjZWMtBO2CN2q0SWhpzqGIEQt2Sy0lbnel5+y9iq3DitP1cB2N++5qfvU6AT8TacpRggtHq0mm6uPGZibCzdI7WKiOklxXOE/O6cUM4Nw5gzr8MnXks4lZvlYoys6cLIQsZVnvY/IeY7Z9xUQve/nqrpsWrBQ1AWJAa30/5li+yvIQHyJHqpH4ih2Ay/aiVJRJEu0fmYwGmLvXRq0QR4vlzjvlCmerjyKZzoZM7LPr8aFSNyDdfouWN2stXf/qUV6lkuYQ74aC060MNy9/JcZHKndfe5ct1yPnlZFGPGLE3Wz90=
file:
- releases/linux/linux.zip
- releases/darwin/macos.zip
- releases/windows/windows.zip
on:
repo: rcaught/hosts-override
tags: true