57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
language: go
|
|
go:
|
|
- 1.3
|
|
- 1.4
|
|
- 1.5
|
|
- 1.6
|
|
- 1.7
|
|
- tip
|
|
sudo: required
|
|
cache:
|
|
apt: true
|
|
directories:
|
|
- $HOME/.gimme
|
|
- $HOME/.frey
|
|
env:
|
|
global:
|
|
- GO15VENDOREXPERIMENT=1
|
|
- secure: Ls76vWCzitRPJ4gyIAj7SdAUkbp2hhYd0zsDjHXriZA+KmlrZLsr4L3QcOaX+MMjMyEURZMS43VVaygP6Y8oF5yv4wYBHKgYh0ZW96pWrIS++0B5lo+2U+JZtTKAfLnOLHUQfLL5h4fg9+oa4mlcuH+3FvaCwO0TJjLU1b0q3Fc=
|
|
- secure: aAfgsISNfOC/8FDZSctCJr/JnxxnPkd1o0Zcqc+mTw6NXUa4T3o+aqbaY/VK5lk7Pru9exs5j+HdaeGhQrLMZJca803Sg1r0m68+h/2bS58p9zjyPk7aULCSAF7EUlqT041QQ5UBJV7gpIxFW1nyD6vL0ZBW1wA1k1PpxTjznPA=
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|
|
install:
|
|
- export PACKAGES=$(find ./ -maxdepth 2 -name '*.go' -printf '%h\n' | sort | uniq)
|
|
- rsync -r ./vendor/ $GOPATH/src
|
|
- go get github.com/aws/aws-sdk-go
|
|
- go get github.com/hashicorp/consul
|
|
script:
|
|
- go test $PACKAGES
|
|
before_deploy:
|
|
- export GOROOT_BOOTSTRAP=$GOROOT
|
|
- go get github.com/laher/goxc
|
|
- goxc -t -bc="linux darwin windows"
|
|
- goxc -d=./ -wd=./cmd/tusd -bc="linux darwin windows" -build-ldflags="-X github.com/tus/tusd/cmd/tusd/cli.VersionName=$TRAVIS_TAG -X github.com/tus/tusd/cmd/tusd/cli.GitCommit=$TRAVIS_COMMIT -X 'github.com/tus/tusd/cmd/tusd/cli.BuildDate=$(date --utc)'"
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
secure: dV3wr9ebEps3YrzIoqmkYc7fw0IECz7QLPRENPSxTJyd5TTYXGsnTS26cMe2LdGwYrXw0njt2GGovMyBZFTtxyYI3mMO4AZRwvZfx/yGzPWJBbVi6NjZVRg/bpyK+mQJ5BUlkPAYJmRpdc6qD+nvCGakBOxoByC5XDK+yM+bKFs=
|
|
file:
|
|
- snapshot/tusd_darwin_386.zip
|
|
- snapshot/tusd_darwin_amd64.zip
|
|
- snapshot/tusd_linux_386.tar.gz
|
|
- snapshot/tusd_linux_amd64.tar.gz
|
|
- snapshot/tusd_linux_arm.tar.gz
|
|
- snapshot/tusd_snapshot_amd64.deb
|
|
- snapshot/tusd_snapshot_armhf.deb
|
|
- snapshot/tusd_snapshot_i386.deb
|
|
- snapshot/tusd_windows_386.zip
|
|
- snapshot/tusd_windows_amd64.zip
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
go: 1.5
|
|
repo: tus/tusd
|
|
after_deploy:
|
|
- make frey && frey setup --force-yes --projectDir .infra
|