Move before_deploy steps to after_success to avoid re-building the binary before every deploy

- https://docs.travis-ci.com/user/job-lifecycle/#deploying-your-code
This commit is contained in:
Dale Hui 2018-11-08 03:01:37 -08:00
parent 83f5b9f644
commit d27dc63026
1 changed files with 0 additions and 2 deletions

View File

@ -43,8 +43,6 @@ script:
after_success:
- goveralls -service=travis-ci -coverprofile /tmp/coverage/combined.txt
- make list-external-deps > dependency_tree.txt && cat dependency_tree.txt
before_deploy:
- make build-cli
- gem install --no-ri --no-rdoc fpm
- fpm -s dir -t deb -n migrate -v "$(git describe --tags 2>/dev/null | cut -c 2-)" --license MIT -m dhui@users.noreply.github.com --url https://github.com/golang-migrate/migrate --description='Database migrations' -a amd64 -p migrate.$(git describe --tags 2>/dev/null | cut -c 2-).deb --deb-no-default-config-files -f -C cli/build migrate.linux-amd64=/usr/local/bin/migrate