fix version string

This commit is contained in:
Matthias Kadenbach 2017-02-23 10:36:33 -08:00
parent 511f9c1ffe
commit ec5c0ac3e0
No known key found for this signature in database
GPG Key ID: DC1F4DC6D31A7031
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ go:
- 1.8
env:
- MIGRATE_TEST_CONTAINER_BOOT_DELAY=15
- MIGRATE_TEST_CONTAINER_BOOT_DELAY=10
# TODO: https://docs.docker.com/engine/installation/linux/ubuntu/
# pre-provision with travis docker setup and pin down docker version in install step
@ -29,7 +29,7 @@ after_success:
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)" --license MIT -m matthias.kadenbach@gmail.com --url https://github.com/mattes/migrate --description='Database migrations' -a amd64 -p migrate.$(git describe --tags 2>/dev/null).deb --deb-no-default-config-files -f -C cli/build migrate.linux-amd64=/usr/bin/migrate
- fpm -s dir -t deb -n migrate -v "$(git describe --tags 2>/dev/null | cut -c 2-)" --license MIT -m matthias.kadenbach@gmail.com --url https://github.com/mattes/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/bin/migrate
deploy:
- provider: releases

View File

@ -1,6 +1,6 @@
SOURCE ?= file go-bindata github
DATABASE ?= postgres
VERSION ?= $(shell git describe --tags 2>/dev/null)
VERSION ?= $(shell git describe --tags 2>/dev/null | cut -c 2-)
TEST_FLAGS ?=
REPO_OWNER ?= $(shell cd .. && basename "$$(pwd)")