Travis whitespace

This commit is contained in:
Kevin van Zonneveld 2016-03-29 13:38:20 +02:00
parent e54850a3aa
commit 43653b6d01
1 changed files with 7 additions and 12 deletions

View File

@ -5,30 +5,25 @@ go:
- 1.5 - 1.5
- 1.6rc2 - 1.6rc2
- tip - tip
sudo: false sudo: false
env: env:
global: global:
- GO15VENDOREXPERIMENT=1 - GO15VENDOREXPERIMENT=1
matrix: matrix:
allow_failures: allow_failures:
- go: tip - go: tip
install: install:
- export PACKAGES=$(find ./ -maxdepth 1 -type d -not \( -name ".git" -or -name "cmd" -or -name ".infra" -or -name "vendor" -or -name "data" -or -name ".hooks" \)) - export PACKAGES=$(find ./ -maxdepth 1 -type d -not \( -name ".git" -or -name "cmd"
-or -name ".infra" -or -name "vendor" -or -name "data" -or -name ".hooks" \))
- rsync -r ./vendor/ $GOPATH/src - rsync -r ./vendor/ $GOPATH/src
script: script:
- go test $PACKAGES - go test $PACKAGES
before_deploy: before_deploy:
- export GOROOT_BOOTSTRAP=$GOROOT - export GOROOT_BOOTSTRAP=$GOROOT
- go get github.com/laher/goxc - go get github.com/laher/goxc
- goxc -t -bc="linux darwin windows" - goxc -t -bc="linux darwin windows"
- goxc -d=./ -wd=./cmd/tusd -bc="linux darwin windows" -build-ldflags="-X main.VersionName=$TRAVIS_TAG -X main.GitCommit=$TRAVIS_COMMIT -X 'main.BuildDate=$(date --utc)'" - goxc -d=./ -wd=./cmd/tusd -bc="linux darwin windows" -build-ldflags="-X main.VersionName=$TRAVIS_TAG
-X main.GitCommit=$TRAVIS_COMMIT -X 'main.BuildDate=$(date --utc)'"
deploy: deploy:
provider: releases provider: releases
api_key: api_key:
@ -45,11 +40,11 @@ deploy:
- snapshot/tusd_windows_386.zip - snapshot/tusd_windows_386.zip
- snapshot/tusd_windows_amd64.zip - snapshot/tusd_windows_amd64.zip
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true
go: 1.5 go: 1.5
repo: tus/tusd repo: tus/tusd
after_deploy: after_deploy:
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ]; then (make frey && frey setup --projectDir .infra) else echo "Skipping deploy for non-master/PRs"; fi - if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ];
then (make frey && frey setup --projectDir .infra) else echo "Skipping deploy for
non-master/PRs"; fi