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:
|
2019-03-08 18:47:06 +00:00
|
|
|
- 1.12.x
|
2018-05-29 17:40:00 +00:00
|
|
|
- 1.x
|
|
|
|
|
2016-10-24 09:03:18 +00:00
|
|
|
services:
|
|
|
|
- memcached
|
2018-05-29 17:40:00 +00:00
|
|
|
|
2019-03-11 16:56:48 +00:00
|
|
|
go_import_path: github.com/go-acme/lego
|
2019-03-08 18:47:06 +00:00
|
|
|
|
2018-12-06 21:50:17 +00:00
|
|
|
addons:
|
|
|
|
hosts:
|
|
|
|
# for e2e tests
|
|
|
|
- acme.wtf
|
|
|
|
- lego.wtf
|
|
|
|
- acme.lego.wtf
|
|
|
|
- légô.wtf
|
|
|
|
- xn--lg-bja9b.wtf
|
|
|
|
|
2016-10-24 09:03:18 +00:00
|
|
|
env:
|
2019-08-13 15:07:06 +00:00
|
|
|
global:
|
|
|
|
- MEMCACHED_HOSTS=localhost:11211
|
|
|
|
- GO111MODULE=on
|
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'
|
2018-05-30 22:28:41 +00:00
|
|
|
|
2018-12-19 13:09:32 +00:00
|
|
|
# Install Pebble and challtestsrv
|
2019-07-30 19:19:32 +00:00
|
|
|
- GO111MODULE=off go get -u github.com/letsencrypt/pebble/...
|
2018-12-06 21:50:17 +00:00
|
|
|
|
2018-05-30 22:03:55 +00:00
|
|
|
# Install linters and misspell
|
2019-07-04 17:20:26 +00:00
|
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.17.1
|
2018-09-24 19:07:20 +00:00
|
|
|
- golangci-lint --version
|
2018-05-30 22:28:41 +00:00
|
|
|
|
2019-03-08 18:47:06 +00:00
|
|
|
# Hugo - documentation
|
|
|
|
- wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.deb
|
|
|
|
- sudo dpkg -i /tmp/hugo.deb
|
|
|
|
|
2018-05-29 17:40:00 +00:00
|
|
|
install:
|
2018-10-17 20:34:51 +00:00
|
|
|
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
|
2019-07-30 19:19:32 +00:00
|
|
|
- go mod download
|
2018-05-29 17:40:00 +00:00
|
|
|
|
2019-05-06 17:09:36 +00:00
|
|
|
before_script:
|
|
|
|
- make validate-doc
|
|
|
|
|
2019-01-09 18:43:59 +00:00
|
|
|
after_success:
|
|
|
|
- make clean
|
|
|
|
|
2019-03-08 18:47:06 +00:00
|
|
|
before_deploy:
|
|
|
|
- >
|
|
|
|
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
|
|
|
|
export BEFORE_DEPLOY_RUN=1;
|
|
|
|
make docs-build
|
|
|
|
fi
|
|
|
|
|
2018-05-29 17:40:00 +00:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: curl -sL https://git.io/goreleaser | bash
|
|
|
|
on:
|
|
|
|
tags: true
|
2018-10-17 20:34:51 +00:00
|
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.x$
|
2018-05-29 17:40:00 +00:00
|
|
|
|
|
|
|
- provider: releases
|
|
|
|
api_key: ${GITHUB_TOKEN}
|
|
|
|
file: dist/lego_*
|
|
|
|
skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
file_glob: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2018-10-17 20:34:51 +00:00
|
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.x$
|
2019-03-08 18:47:06 +00:00
|
|
|
|
|
|
|
- provider: pages
|
|
|
|
local_dir: docs/public
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: ${GITHUB_TOKEN}
|