forked from cloudflare/certmgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (30 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: go
dist: trusty
sudo: false
go:
- 1.14.x
script:
- GOFLAGS=-mod=vendor go test -v ./...
jobs:
include:
- stage: Cross-Build
go: 1.14.x
env:
- CGO_ENABLED=0
script:
- export SOURCE_DATE_EPOCH=$(git show -s --format=%ci ${TRAVIS_TAG:-${TRAVIS_COMMIT}})
- go get github.com/mitchellh/gox
- GOFLAGS=-mod=vendor gox -output="{{.Dir}}-{{.OS}}-{{.Arch}}-${TRAVIS_TAG:-${TRAVIS_COMMIT}}" -os='darwin dragonfly freebsd linux netbsd openbsd solaris' -osarch='!dragonfly/386 !darwin/arm64 !darwin/arm !linux/mips !linux/mipsle' -gcflags="-trimpath=${GOPATH}" -ldflags="-X github.com/cloudflare/certmgr/certmgr/cmd.currentVersion=$(git describe)" ./certmgr/
- for i in certmgr-*; do tar --mtime="${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner -c $i | gzip -n - > $i.tar.gz; done
- shasum -a 512 certmgr-*.tar.gz | tee sha512sum.txt
deploy:
provider: releases
api_key:
secure: cPWR8Je1WoEYWX3ljHKI7pb4lAK6LJ/HTAsa8IPVv0TmXrgGhK1Cgz8K9Ty932lW/kAflCG7VSAJsFzXNcDFTbMv6ftxYGOQoSD9A8NVjjadX5ITdisr0BHVYLUZm1SdRI4Z+0OtUY2Dr/PZLGUEt7GuV5059UEyaDtMEE2yAKlo1mtrt5XG+8eF3jFteeNVEQ5f4VwMTF8JMrPKzU2aJ6g07OQvHXfKWq5MbD14eh4vRfIpH0+SVb650Gc9VHASuIH7TAw7b7uPgahJkE88h3WbLkQfqlXqbgMiGqQkUlbgFwdDSDu4V5IhAc235sK0FBkB1lBsEo79hqYpTbIpqI3SKMz1x6aeYRDmGXmuslWK4asym7VN+nUxx6mRswIT8PrN1wPH8oz6bbWN9m/QF//ISFy0tZLCVt+AsrTYHqkN8ukbbSqoG3FfmEhq/PR+7G72IQT8dqO3JEcbXtvPH9BGmbmkuFiCUxtK7pNTZJ0K8PTQoOZ64NnqWGbo0TlfOn8YtFHcpzu3d51EYHibNR19HY0HgYTu9AM0HfjSf089Q/M9TdpUD4ePL98MeUFuDXwvPBLExBnR3bcF0WLxjHKqAn96v+//dekAFqHbDHoSmECdVoYXEvVwq6roJSNxQyp6JVXiKRngLPekeftL7MrBU15HV76wkyNL0+bp6nQ=
skip_cleanup: true
file_glob: true
file:
- certmgr-*.tar.gz
- sha512sum.txt
on:
tags: true