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
2018-09-13 11:44:36 +00:00
matrix :
allow_failures :
- go : master
include :
# Supported versions of Go: https://golang.org/dl/
- go : "1.10.x"
- go : "1.11.x"
- go : master
2014-08-11 01:42:57 +00:00
2018-05-31 21:41:27 +00:00
go_import_path : github.com/golang-migrate/migrate
2017-02-08 09:49:57 +00:00
env :
2018-06-18 00:42:03 +00:00
global :
2018-10-10 22:09:03 +00:00
- GO111MODULE=on
2018-06-18 00:42:03 +00:00
- MIGRATE_TEST_CONTAINER_BOOT_TIMEOUT=60
- DOCKER_USERNAME=golangmigrate
2018-06-19 07:27:15 +00:00
- secure : "oSOznzUrgr5h45qW4PONkREpisPAt40tnM+KFWtS/Ggu5UI2Ie0CmyYXWuBjbt7B97a4yN9Qzmn8FxJHJ7kk+ABOi3muhkxeIhr6esXbzHhX/Jhv0mj1xkzX7KoVN9oHBz3cOI/QeRyEAO68xjDHNE2kby4RTT9VBt6TQUakKVkqI5qkqLBTADepCjVC+9XhxVxUNyeWKU8ormaUfJBjoNVoDlwXekUPnJenfmfZqXxUInvBCfUyp7Pq+kurBORmg4yc6qOlRYuK67Xw+i5xpjbZouNlXPk0rq7pPy5zjhmZQ3kImoFPvNMeKViDcI6kSIJKtjdhms9/g/6MgXS9HlL5kFy8tYKbsyiHnHB1BsvaLAKXctbUZFDPstgMPADfnad2kZXPrNqIhfWKZrGRWidawCYJ1sKKwYxLMKrtA0umqgMoL90MmBOELhuGmvMV0cFJB+zo+K2YWjEiMGd8xRb5mC5aAy0ZcCehO46jGtpr217EJmMF8Ywr7cFqM2Shg5U2jev9qUpYiXwmPnJKDuoT2ZHuHmPgFIkYiWC5yeJnnmG5bed1sKBp93AFrJX+1Rx5oC4BpNegewmBZKpOSwls/D1uMAeQK3dPmQHLsT6o2VBLfeDGr+zY0R85ywwPZCv00vGol02zYoTqN7eFqr6Qhjr/qx5K1nnxJdFK3Ts="
2017-02-08 09:49:57 +00:00
2014-08-27 02:45:56 +00:00
services :
2018-01-20 01:57:14 +00:00
- docker
before_cache :
2018-01-20 04:53:20 +00:00
- mv $GOPATH/src/github.com/golang-migrate /tmp/golang-migrate
2018-01-20 01:57:14 +00:00
- rm -rf $GOPATH/pkg/**/github.com/golang-migrate
cache :
directories :
- $GOPATH/pkg
2017-02-08 09:49:57 +00:00
2018-05-13 07:22:33 +00:00
before_install :
2018-09-05 00:31:37 +00:00
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
2018-05-13 07:22:33 +00:00
# Download the binary to bin folder in $GOPATH
2018-10-10 22:09:03 +00:00
- if [[ "${TRAVIS_GO_VERSION}" == 1.10* ]]; then curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep; fi
2018-05-13 07:22:33 +00:00
# Make the binary executable
2018-10-10 22:09:03 +00:00
- if [[ "${TRAVIS_GO_VERSION}" == 1.10* ]]; then chmod +x $GOPATH/bin/dep; fi
2018-05-13 07:22:33 +00:00
2017-02-08 09:49:57 +00:00
install :
2018-10-10 22:09:03 +00:00
- if [[ "${TRAVIS_GO_VERSION}" == 1.10* ]]; then dep ensure -vendor-only; fi
2018-06-19 06:07:54 +00:00
- go get github.com/mattn/goveralls
2017-02-08 09:49:57 +00:00
script :
2018-01-20 01:57:14 +00:00
- make test COVERAGE_DIR=/tmp/coverage
2017-02-08 09:49:57 +00:00
2017-02-09 00:17:04 +00:00
after_success :
2018-01-20 04:53:20 +00:00
- mv /tmp/golang-migrate $GOPATH/src/github.com/golang-migrate
2018-01-20 01:57:14 +00:00
- goveralls -service=travis-ci -coverprofile /tmp/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
2018-01-20 10:10:22 +00:00
- 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/bin/migrate
2014-08-27 02:45:56 +00:00
2017-02-08 09:49:57 +00:00
deploy :
2017-02-23 00:41:11 +00:00
- provider : releases
api_key :
2018-01-20 09:49:02 +00:00
secure : hWH1HLPpzpfA8pXQ93T1qKQVFSpQp0as/JLQ7D91jHuJ8p+RxVeqblDrR6HQY/95R/nyiE9GJmvUolSuw5h449LSrGxPtVWhdh6EnkxlQHlen5XeMhVjRjFV0sE9qGe8v7uAkiTfRO61ktTWHrEAvw5qpyqnNISodmZS78XIasPODQbNlzwINhWhDTHIjXGb4FpizYaL3OGCanrxfR9fQyCaqKGGBjRq3Mfq8U6Yd4mApmsE+uJxgaZV8K5zBqpkSzQRWhcVGNL5DuLsU3gfSJOo7kZeA2G71SHffH577dBoqtCZ4VFv169CoUZehLWCb+7XKJZmHXVujCURATSySLGUOPc6EoLFAn3YtsCA04mS4bZVo5FZPWVwfhjmkhtDR4f6wscKp7r1HsFHSOgm59QfETQdrn4MnZ44H2Jd39axqndn5DvK9EcZVjPHynOPnueXP2u6mTuUgh2VyyWBCDO3CNo0fGlo7VJI69IkIWNSD87K9cHZWYMClyKZkUzS+PmRAhHRYbVd+9ZjKOmnU36kUHNDG/ft1D4ogsY+rhVtXB4lgWDM5adri+EIScYdYnB1/pQexLBigcJY9uE7nQTR0U6QgVNYvun7uRNs40E0c4voSfmPdFO0FlOD2y1oQhnaXfWLbu9nMcTcs4RFGrcC7NzkUN4/WjG8s285V6w=
2017-02-23 00:41:11 +00:00
skip_cleanup : true
on :
2018-09-05 00:31:37 +00:00
go : "1.11.x"
2018-01-20 09:49:02 +00:00
repo : golang-migrate/migrate
2017-02-23 00:41:11 +00:00
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
2018-01-20 10:10:22 +00:00
username : golang-migrate
2017-02-23 00:41:11 +00:00
token :
2018-01-20 10:10:22 +00:00
secure : aICwu3gJ1sJ1QVCD3elpg+Jxzt4P+Zj1uoh5f0sOwnjDNIZ4FwUT1cMrWloP8P2KD0iyCOawuZER27o/kQ21oX2OxHvQbYPReA2znLm7lHzCmypAAOHPxpgnQ4rMGHHJXd+OsxtdclGs67c+EbdBfoRRbK400Qz/vjPJEDeH4mh02ZHC2nw4Nk/wV4jjBIkIt9dGEx6NgOA17FCMa3MaPHlHeFIzU7IfTlDHbS0mCCYbg/wafWBWcbGqtZLWAYtJDmfjrAStmDLdAX5J5PsB7taGSGPZHmPmpGoVgrKt/tb9Xz1rFBGslTpGROOiO4CiMAvkEKFn8mxrBGjfSBqp7Dp3eeSalKXB1DJAbEXx2sEbMcvmnoR9o43meaAn+ZRts8lRL8S/skBloe6Nk8bx3NlJCGB9WPK1G56b7c/fZnJxQbrCw6hxDfbZwm8S2YPviFTo/z1BfZDhRsL74reKsN2kgnGo2W/k38vvzIpsssQ9DHN1b0TLCxolCNPtQ7oHcQ1ohcjP2UgYXk0FhqDoL+9LQva/DU4N9sKH0UbAaqsMVSErLeG8A4aauuFcVrWRBaDYyTag4dQqzTulEy7iru2kDDIBgSQ1gMW/yoBOIPK4oi6MtbTf1X39fzXFLS1cDd3LW61yAu3YrbjAetpfx2frIvrRAiL9TxWA1gnrs5o=
2017-02-23 00:41:11 +00:00
dist : ubuntu/xenial
package_glob : '*.deb'
skip_cleanup : true
on :
2018-09-05 00:31:37 +00:00
go : "1.11.x"
2018-01-20 10:10:22 +00:00
repo : golang-migrate/migrate
2017-02-23 00:41:11 +00:00
tags : true
2018-05-08 19:13:53 +00:00
- provider : script
script : ./docker-deploy.sh
on :
2018-09-05 00:31:37 +00:00
go : "1.11.x"
2018-05-08 19:13:53 +00:00
repo : golang-migrate/migrate
tags : true