2015-06-13 17:36:15 +02:00
|
|
|
language: go
|
2018-05-29 19:40:00 +02:00
|
|
|
|
2016-02-14 02:03:40 +02:00
|
|
|
go:
|
2018-12-06 23:50:17 +02:00
|
|
|
- 1.10.x
|
2018-05-29 19:40:00 +02:00
|
|
|
- 1.x
|
|
|
|
|
2016-10-24 11:03:18 +02:00
|
|
|
services:
|
|
|
|
- memcached
|
2018-05-29 19:40:00 +02:00
|
|
|
|
2018-12-06 23:50:17 +02:00
|
|
|
addons:
|
|
|
|
hosts:
|
|
|
|
# for e2e tests
|
|
|
|
- acme.wtf
|
|
|
|
- lego.wtf
|
|
|
|
- acme.lego.wtf
|
|
|
|
- légô.wtf
|
|
|
|
- xn--lg-bja9b.wtf
|
|
|
|
|
2016-10-24 11:03:18 +02:00
|
|
|
env:
|
|
|
|
- MEMCACHED_HOSTS=localhost:11211
|
2018-05-29 19:40:00 +02:00
|
|
|
|
2016-03-22 02:46:32 +02:00
|
|
|
before_install:
|
2018-05-29 19:40:00 +02: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-31 00:28:41 +02:00
|
|
|
|
|
|
|
# Download and install dep
|
|
|
|
- curl -sI https://github.com/golang/dep/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/dep-linux-amd64"}' | wget --output-document=$GOPATH/bin/dep -i -
|
|
|
|
- chmod +x $GOPATH/bin/dep
|
|
|
|
|
2018-12-19 15:09:32 +02:00
|
|
|
# Install Pebble and challtestsrv
|
2018-12-06 23:50:17 +02:00
|
|
|
- go get -u github.com/letsencrypt/pebble/...
|
|
|
|
|
2018-05-31 00:03:55 +02:00
|
|
|
# Install linters and misspell
|
2019-02-06 19:15:53 +02:00
|
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.13.2
|
2018-09-24 21:07:20 +02:00
|
|
|
- golangci-lint --version
|
2018-05-31 00:28:41 +02:00
|
|
|
|
2018-05-29 19:40:00 +02:00
|
|
|
install:
|
2018-10-17 22:34:51 +02:00
|
|
|
- echo "TRAVIS_GO_VERSION=$TRAVIS_GO_VERSION"
|
2018-05-31 00:28:41 +02:00
|
|
|
- dep status -v
|
2018-05-29 19:40:00 +02:00
|
|
|
|
2019-01-09 20:43:59 +02:00
|
|
|
after_success:
|
|
|
|
- make clean
|
|
|
|
|
2018-05-29 19:40:00 +02:00
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: curl -sL https://git.io/goreleaser | bash
|
|
|
|
on:
|
|
|
|
tags: true
|
2018-10-17 22:34:51 +02:00
|
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.x$
|
2018-05-29 19:40:00 +02:00
|
|
|
|
|
|
|
- provider: releases
|
|
|
|
api_key: ${GITHUB_TOKEN}
|
|
|
|
file: dist/lego_*
|
|
|
|
skip_cleanup: true
|
|
|
|
overwrite: true
|
|
|
|
file_glob: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2018-10-17 22:34:51 +02:00
|
|
|
condition: $TRAVIS_GO_VERSION =~ ^1\.x$
|