migrate/.travis.yml

62 lines
2.0 KiB
YAML
Raw Normal View History

2014-08-11 01:42:57 +00:00
language: go
2015-10-15 16:53:53 +00:00
sudo: required
2014-08-11 01:42:57 +00:00
go:
- 1.7
2017-02-17 04:46:12 +00:00
- 1.8
2014-08-11 01:42:57 +00:00
2017-02-08 09:49:57 +00:00
env:
2017-02-23 18:36:33 +00:00
- MIGRATE_TEST_CONTAINER_BOOT_DELAY=10
2017-02-08 09:49:57 +00:00
# TODO: https://docs.docker.com/engine/installation/linux/ubuntu/
# pre-provision with travis docker setup and pin down docker version in install step
2014-08-27 02:45:56 +00:00
services:
2017-02-08 09:49:57 +00:00
- docker
install:
- make deps
- (cd $GOPATH/src/github.com/docker/docker && git fetch --all --tags --prune && git checkout v1.13.0)
- sudo apt-get update && sudo apt-get install docker-engine=1.13.0*
2017-02-09 00:17:04 +00:00
- go get github.com/mattn/goveralls
2017-02-08 09:49:57 +00:00
script:
- make test
2017-02-09 00:17:04 +00:00
after_success:
- goveralls -service=travis-ci -coverprofile .coverage/combined.txt
2017-02-09 03:54:50 +00:00
- make list-external-deps > dependency_tree.txt && cat dependency_tree.txt
2017-02-09 00:17:04 +00:00
2017-02-08 09:49:57 +00:00
before_deploy:
- make build-cli
2017-02-23 01:27:18 +00:00
- gem install --no-ri --no-rdoc fpm
2017-02-23 18:36:33 +00:00
- 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
2014-08-27 02:45:56 +00:00
2017-02-08 09:49:57 +00:00
deploy:
- provider: releases
api_key:
secure: EFow50BI448HVb/uQ1Kk2Kq0xzmwIYq3V67YyymXIuqSCodvXEsMiBPUoLrxEknpPEIc67LEQTNdfHBgvyHk6oRINWAfie+7pr5tKrpOTF9ghyxoN1PlO8WKQCqwCvGMBCnc5ur5rvzp0bqfpV2rs5q9/nngy3kBuEvs12V7iho=
skip_cleanup: true
on:
2017-02-23 18:30:18 +00:00
go: 1.8
repo: mattes/migrate
tags: true
file:
- cli/build/migrate.linux-amd64.tar.gz
- cli/build/migrate.darwin-amd64.tar.gz
- cli/build/migrate.windows-amd64.exe.tar.gz
- cli/build/sha256sum.txt
- dependency_tree.txt
- provider: packagecloud
repository: migrate
username: mattes
token:
secure: RiHJ/+J9DvXUah/APYdWySWZ5uOOISYJ0wS7xddc7/BNStRVjzFzvJ9zmb67RkyZZrvGuVjPiL4T8mtDyCJCj47RmU/56wPdEHbar/FjsiUCgwvR19RlulkgbV4okBCePbwzMw6HNHRp14TzfQCPtnN4kef0lOI4gZJkImN7rtQ=
dist: ubuntu/xenial
package_glob: '*.deb'
skip_cleanup: true
on:
2017-02-23 18:30:18 +00:00
go: 1.8
repo: mattes/migrate
tags: true