transfer.sh/.travis.yml

43 lines
1.4 KiB
YAML
Raw Normal View History

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
os:
- linux
go:
- 1.10.x
- 1.11.x
2019-05-11 15:02:16 +02:00
- 1.12.x
- tip
2017-03-22 20:47:33 +01:00
2017-03-22 20:59:56 +01:00
install:
- echo "This is an override of the default install deps step in travis."
script:
2019-05-11 15:25:07 +02:00
- go get -t -u -v ./...
2017-03-22 20:59:56 +01:00
- go build -v .
2019-05-11 15:03:39 +02:00
- go vet ./...
- go test ./...
2019-08-24 13:29:08 +02:00
before_deploy:
- mkdir -p release
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-linux-amd64"
- "GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-linux-armv7"
- "GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-darwin-amd64"
- "GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-s -w -extldflags -static' -o release/transfersh-$TRAVIS_TAG-win-amd64.exe"
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
go: tip
overwrite: true