mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-26 14:10:18 +01:00
58 lines
No EOL
1.6 KiB
YAML
58 lines
No EOL
1.6 KiB
YAML
language: go
|
|
sudo: false
|
|
|
|
os:
|
|
- linux
|
|
|
|
services:
|
|
- docker
|
|
|
|
go:
|
|
- 1.13.x
|
|
- tip
|
|
|
|
env:
|
|
global:
|
|
- GO111MODULE=on
|
|
|
|
install:
|
|
- go get -t -u -v ./...
|
|
- go build -v .
|
|
- go vet ./...
|
|
|
|
script:
|
|
- go test ./...
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Fuzz regression
|
|
go: 1.13.x
|
|
dist: bionic
|
|
script: ./fuzzit.sh local-regression
|
|
- stage: Fuzz
|
|
if: branch = master AND type IN (push)
|
|
go: 1.13.x
|
|
dist: bionic
|
|
script: ./fuzzit.sh fuzzing
|
|
|
|
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: 1.13.x
|
|
overwrite: true |