nps/.travis.yml

27 lines
534 B
YAML

language: go
go:
- "1.13"
- master
script:
- go test -v ./cmd/nps/
before_deploy:
- GOARCH=amd64 GOOS=linux go build cmd/nps/nps.go
- zip -r server_linux_amd64.zip nps conf web
- GOARCH=amd64 GOOS=darwin go build cmd/nps/nps.go
- zip -r server_macos_amd64.zip nps conf web
- GOARCH=amd64 GOOS=windows go build cmd/nps/nps.go
- zip -r server_windows_amd64.zip nps conf web
deploy:
provider: releases
api_key:
secure: ${TOKEN}
skip_cleanup: true
file:
- server_linux_amd64.zip
on:
tags: true