Move code-deploy to before release-deploy
This commit is contained in:
parent
1f7d84f202
commit
2d30a16ffc
11
.travis.yml
11
.travis.yml
|
@ -15,8 +15,7 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
install:
|
install:
|
||||||
- export PACKAGES=$(find ./ -maxdepth 1 -type d -not \( -name ".git" -or -name "cmd"
|
- 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" \))
|
||||||
-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
|
||||||
|
@ -24,8 +23,8 @@ 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
|
- 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)'"
|
||||||
-X main.GitCommit=$TRAVIS_COMMIT -X 'main.BuildDate=$(date --utc)'"
|
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ]; then (make frey && frey setup --projectDir .infra); else echo "Skipping deploy fornon-master/PRs"; fi
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
@ -46,7 +45,3 @@ deploy:
|
||||||
# tags: true
|
# tags: true
|
||||||
go: 1.5
|
go: 1.5
|
||||||
repo: tus/tusd
|
repo: tus/tusd
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue