hoarder/.travis.yml

32 lines
913 B
YAML
Raw Normal View History

2016-05-24 22:50:45 -04:00
branches:
except:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
2016-05-13 18:14:25 -04:00
language: go
go:
- 1.6
2016-05-16 20:55:31 -04:00
2016-05-16 21:09:00 -04:00
env:
2016-05-17 14:35:00 -04:00
- DATE=$(date '+%s') TAG="$(echo ${TRAVIS_BRANCH} | sed 's/-prerelease//g')-prerelease"
2016-05-16 21:09:00 -04:00
2016-05-16 20:55:31 -04:00
before_install:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
2016-06-17 10:04:47 -04:00
install:
2016-06-17 10:12:56 -04:00
- go get ./cmd/hoarder
2016-06-17 10:04:47 -04:00
2016-06-17 09:26:24 -04:00
# There are no tests at the moment :(
2016-06-17 09:03:41 -04:00
script:
2016-06-17 10:04:47 -04:00
- "true"
2016-05-16 20:55:31 -04:00
after_success:
2016-06-17 10:12:56 -04:00
- "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && gox -ldflags \"-X 'main.buildVersion=${BUILD_VERSION} (${TRAVIS_COMMIT})' -X 'main.buildDate=${DATE}'\" -output \"dist/hoarder_{{.OS}}_{{.Arch}}\" ./cmd/hoarder || false"
2016-05-17 14:16:10 -04:00
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${TAG}" dist/ || false'
2016-06-17 09:26:24 -04:00
notifications:
email:
on_success: change
on_failure: change