2015-06-13 15:36:15 +00:00
|
|
|
language: go
|
2018-05-29 17:40:00 +00:00
|
|
|
|
2016-02-14 00:03:40 +00:00
|
|
|
go:
|
2018-05-29 17:40:00 +00:00
|
|
|
- 1.9.x
|
|
|
|
- 1.x
|
|
|
|
|
2016-10-24 09:03:18 +00:00
|
|
|
services:
|
|
|
|
- memcached
|
2018-05-29 17:40:00 +00:00
|
|
|
|
2016-10-24 09:03:18 +00:00
|
|
|
env:
|
|
|
|
- MEMCACHED_HOSTS=localhost:11211
|
2018-05-29 17:40:00 +00:00
|
|
|
|
2016-03-22 00:46:32 +00:00
|
|
|
before_install:
|
2018-05-29 17:40:00 +00:00
|
|
|
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_26c593b079d9_key -iv $encrypted_26c593b079d9_iv -in .gitcookies.enc -out .gitcookies -d || true'
|
|
|
|
|
|
|
|
install:
|
|
|
|
- go get -t ./...
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: curl -sL https://git.io/goreleaser | bash
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.10\.[0-9]+$
|
|
|
|
|
|
|
|
- provider: releases
|
|
|
|
api_key: ${GITHUB_TOKEN}
|
|
|
|
file: dist/lego_*
|
|
|
|
skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
file_glob: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.10\.[0-9]+$
|