forked from woodylan/go-websocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 835 Bytes
/
.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
language: go
go:
- 1.13.x
script:
- ls -lh
- go test -v ./...
before_deploy:
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-websocket-linux-amd64
- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o go-websocket-windows-amd64.exe
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o go-websocket-darwin-amd64
- zip -r go-websocket-linux-amd64.zip go-websocket-linux-amd64 configs/config.ini
- zip -r go-websocket-windows-amd64.zip go-websocket-windows-amd64.exe configs/config.ini
- zip -r go-websocket-darwin-amd64.zip go-websocket-darwin-amd64 configs/config.ini
deploy:
provider: releases
api_key: ${GITHUB_TOKEN}
file:
- go-websocket-linux-amd64.zip
- go-websocket-windows-amd64.zip
- go-websocket-darwin-amd64.zip
skip_cleanup: true
on:
tags: true
after_deploy:
- ls -lh