Skip to content

Commit

Permalink
A little more customization for travis to allow deploy on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jocgir committed Aug 4, 2017
1 parent ed2ed55 commit a3d20f3
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,36 @@ go:
- 1.8.1

before_install:
- cd ../.. &&
mv coveo terraform-providers &&
cd terraform-providers/terraform-provider-aws;
- if [ ${TRAVIS_TAG::1} = v ];
then
cd ../.. &&
mv coveo terraform-providers &&
cd terraform-providers/terraform-provider-aws;
fi

install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- go get github.com/kardianos/govendor
- if [ ${TRAVIS_TAG::1} = v ];
then
bash scripts/gogetcookie.sh &&
go get github.com/kardianos/govendor;
fi

script:
- make test
- make vendor-status
- make vet
- if [ ${TRAVIS_TAG::1} = v ];
then
make test &&
make vendor-status &&
make vet;
fi

branches:
only:
- master
# branches:
# only:
# - master

matrix:
fast_finish: true
allow_failures:
Expand Down

0 comments on commit a3d20f3

Please sign in to comment.