2014-10-16 20:01:43 +02:00
|
|
|
language: go
|
2017-03-22 20:59:56 +01:00
|
|
|
sudo: false
|
2014-10-16 20:01:43 +02:00
|
|
|
|
2018-10-19 22:26:38 +02:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2019-08-29 07:17:28 +02:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2018-10-19 22:26:38 +02:00
|
|
|
go:
|
2019-10-07 21:30:53 +02:00
|
|
|
- 1.13.x
|
2020-12-15 20:09:24 +01:00
|
|
|
- 1.14.x
|
|
|
|
- 1.15.x
|
2018-10-19 22:26:38 +02:00
|
|
|
- tip
|
2017-03-22 20:47:33 +01:00
|
|
|
|
2019-10-07 21:41:15 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GO111MODULE=on
|
|
|
|
|
2017-03-22 20:59:56 +01:00
|
|
|
install:
|
2019-10-07 22:44:29 +02:00
|
|
|
- go get -t -u -v ./...
|
|
|
|
- go build -v .
|
|
|
|
- go vet ./...
|
2017-03-22 20:59:56 +01:00
|
|
|
|
|
|
|
script:
|
2019-05-11 15:03:39 +02:00
|
|
|
- go test ./...
|
2019-08-24 13:29:08 +02:00
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- mkdir -p release
|
2021-02-19 14:50:40 +01:00
|
|
|
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -ldflags '-a -s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-linux-amd64"
|
|
|
|
- "GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build -tags netgo -ldflags '-a -s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-linux-armv7"
|
|
|
|
- "GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -ldflags '-a -s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-darwin-amd64"
|
|
|
|
- "GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -ldflags '-a -s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-win-amd64.exe"
|
2019-08-24 13:29:08 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: cOuMGyvrl/9GX3TZFL+Vq++2Bv5Hlb3VfXSYONfeAj+1AXI3Y+tPruy/XnWpa1MUxkvFuIhea3sUAiKfwhHip9csCmMUhDJtaTU9apsxRkyF/OFrWb7/FlbnqYuAwnp91ImvtSlnubg2VHTjhBA6ycNQF7WZcJEMVMsAtC/nSY4=
|
|
|
|
file:
|
|
|
|
- "release/transfersh-$TRAVIS_TAG-linux-amd64"
|
|
|
|
- "release/transfersh-$TRAVIS_TAG-linux-armv7"
|
|
|
|
- "release/transfersh-$TRAVIS_TAG-darwin-amd64"
|
|
|
|
- "release/transfersh-$TRAVIS_TAG-win-amd64.exe"
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2020-12-15 20:13:12 +01:00
|
|
|
go: 1.15.x
|
2019-10-07 22:46:55 +02:00
|
|
|
overwrite: true
|