2015-02-01 14:02:52 +00:00
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- 1.3
|
|
|
|
- 1.4
|
2015-12-26 21:36:38 +00:00
|
|
|
- 1.5
|
2016-05-10 10:01:32 +00:00
|
|
|
- 1.6
|
2016-08-26 14:30:40 +00:00
|
|
|
- 1.7
|
2015-02-01 14:02:52 +00:00
|
|
|
- tip
|
2016-03-29 15:01:07 +00:00
|
|
|
sudo: required
|
2016-03-29 13:31:33 +00:00
|
|
|
cache:
|
|
|
|
apt: true
|
|
|
|
directories:
|
|
|
|
- $HOME/.gimme
|
|
|
|
- $HOME/.frey
|
2015-12-26 21:36:38 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GO15VENDOREXPERIMENT=1
|
2016-03-29 11:38:28 +00:00
|
|
|
- secure: Ls76vWCzitRPJ4gyIAj7SdAUkbp2hhYd0zsDjHXriZA+KmlrZLsr4L3QcOaX+MMjMyEURZMS43VVaygP6Y8oF5yv4wYBHKgYh0ZW96pWrIS++0B5lo+2U+JZtTKAfLnOLHUQfLL5h4fg9+oa4mlcuH+3FvaCwO0TJjLU1b0q3Fc=
|
|
|
|
- secure: aAfgsISNfOC/8FDZSctCJr/JnxxnPkd1o0Zcqc+mTw6NXUa4T3o+aqbaY/VK5lk7Pru9exs5j+HdaeGhQrLMZJca803Sg1r0m68+h/2bS58p9zjyPk7aULCSAF7EUlqT041QQ5UBJV7gpIxFW1nyD6vL0ZBW1wA1k1PpxTjznPA=
|
2015-02-01 14:02:52 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2016-01-08 18:23:59 +00:00
|
|
|
install:
|
2016-09-20 22:05:52 +00:00
|
|
|
- export PACKAGES=$(find ./ -maxdepth 2 -name '*.go' -printf '%h\n' | sort | uniq)
|
2016-01-09 19:44:06 +00:00
|
|
|
- rsync -r ./vendor/ $GOPATH/src
|
2016-09-20 22:05:52 +00:00
|
|
|
- go get github.com/aws/aws-sdk-go
|
|
|
|
- go get github.com/hashicorp/consul
|
2015-02-01 14:02:52 +00:00
|
|
|
script:
|
2016-01-08 13:40:34 +00:00
|
|
|
- go test $PACKAGES
|
2015-08-19 16:08:15 +00:00
|
|
|
before_deploy:
|
2016-01-13 21:25:55 +00:00
|
|
|
- export GOROOT_BOOTSTRAP=$GOROOT
|
2015-08-19 16:08:15 +00:00
|
|
|
- go get github.com/laher/goxc
|
2015-08-19 16:24:20 +00:00
|
|
|
- goxc -t -bc="linux darwin windows"
|
2016-07-12 12:46:24 +00:00
|
|
|
- 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)'"
|
2015-08-19 16:08:15 +00:00
|
|
|
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:
|
2016-03-29 17:41:44 +00:00
|
|
|
tags: true
|
2016-01-13 21:25:55 +00:00
|
|
|
go: 1.5
|
2015-08-19 16:08:15 +00:00
|
|
|
repo: tus/tusd
|
2016-03-29 17:41:44 +00:00
|
|
|
after_deploy:
|
2016-05-10 12:53:25 +00:00
|
|
|
- make frey && frey setup --force-yes --projectDir .infra
|