-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.53 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
language: go
go:
- 1.12
env:
- GO111MODULE=on
script:
# Fail on first non 0 exit code
- set -e
# Check if Go source code is unformatted
- UNFMT_LIST=$(gofmt -l $(find . -iname '*.go' -type f))
- if [ "${UNFMT_LIST}" ]; then echo "${UNFMT_LIST}"; exit 1; fi
# Run tests
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
# Linter for Go source code
#- go get -u golang.org/x/lint/golint
#- golint -set_exit_status ./...
# Vet examines Go source code and reports suspicious constructs
- go vet ./...
# Can app be built?
- GOOS=linux GOARCH=arm go build -o 8xIO-linux-arm
- GOOS=linux GOARCH=amd64 go build -o 8xIO-linux-amd64
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
api_key:
secure: sLzD6UxMxxeQCXiBANbMy2ji/zNChD3R3nuL0GGtNHHVAjAmUSg/oPXgGw4xJuUpG/zdO4BBLGgqnZ2SkveYwv6b2vxQlDSki3hLKaZg0/sKu/oDBrbChoNJeQtGCBBCATXVwxW47uVacB/SHVHIyaU45o+PwKZgSjLj5qma4ktTdTEJrRrAOT4y+mGa+fRCskCutercMuEYOiQFxwygOVyUZB956ld+SNzJcYiXDRNU8G52wCWqHycK5ikCWJpF+gebdeglSkScU1gFgjJ1NU5yh3g/bJzG+3MAp4o4KgFUXKNE8EIrGINd18Yh0vCmrTb1TUxxLu0tdlolZ3qkHYgzz/xolKhiRKIfIvmqaIbA5RQfc+dIkUgMp7uBEEzD7Y4ofqdw0+iPwl+jUx/aJjWsIkNQkjOp00mnUf5x020FZvas1xm4K9yN2FrzTGY1qKeeEsbn4wAR11YndCPcUcR7bz5DL/bVS0YgW6wumRPg0WY1yb6ilc92rdI2m/Y7VxjmndtwMmfej9pQRNgTwCytyu4m3q7bhhxSDsUqQDAW1H6nrssr1it5Nqo+riA7+ohz6CbXjY2Txe/uRHB9tzWOe/JyD4qOY0Lw2X0awj99msR8tFyV7Gnp4pSfy2Smj4wz1oP3Jq0L3U0kTtnP5FvdU8OWr4OjHw2OckariF8=
file:
- 8xIO-linux-arm
- 8xIO-linux-amd64
skip_cleanup: true
on:
tags: true