language: go go: - 1.2 - 1.3 - 1.4 - 1.5 - 1.6beta2 - tip sudo: false env: global: - GO15VENDOREXPERIMENT=1 matrix: allow_failures: - go: tip install: - export PACKAGES=$(find ./ -maxdepth 1 -type d -not \( -name ".git" -or -name "cmd" -or -name "vendor" -or -name "data" \)) - rsync -r ./vendor/ $GOPATH/src 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" -ldflags="-X main.VersionName=$TRAVIS_TAG -X main.GitCommit=$TRAVIS_COMMIT -X 'main.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