2018-01-10 17:27:48 +01:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: go
|
|
|
|
|
|
|
|
os:
|
2018-01-11 22:38:50 +01:00
|
|
|
- linux
|
2018-01-10 17:27:48 +01:00
|
|
|
|
|
|
|
go:
|
2018-01-11 22:38:50 +01:00
|
|
|
- 1.9.2
|
2018-01-10 17:27:48 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- echo $TRAVIS_GO_VERSION
|
|
|
|
- cd dnscrypt-proxy
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=plan9 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=solaris go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=windows GOARCH=386 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir win32
|
|
|
|
- ln dnscrypt-proxy.exe win32/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt win32/
|
2018-01-10 17:27:48 +01:00
|
|
|
- zip -9 -r dnscrypt-proxy-win32-${TRAVIS_TAG:-dev}.zip win32
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=windows GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir win64
|
|
|
|
- ln dnscrypt-proxy.exe win64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt win64/
|
2018-01-10 17:27:48 +01:00
|
|
|
- zip -9 -r dnscrypt-proxy-win64-${TRAVIS_TAG:-dev}.zip win64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-18 02:07:31 +01:00
|
|
|
- env GO386=387 GOOS=openbsd GOARCH=386 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir openbsd-i386
|
|
|
|
- ln dnscrypt-proxy openbsd-i386/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt openbsd-i386/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-openbsd_i386-${TRAVIS_TAG:-dev}.tar.gz openbsd-i386
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=openbsd GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir openbsd-amd64
|
|
|
|
- ln dnscrypt-proxy openbsd-amd64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt openbsd-amd64/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-openbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz openbsd-amd64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=freebsd GOARCH=386 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir freebsd-i386
|
|
|
|
- ln dnscrypt-proxy freebsd-i386/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt freebsd-i386/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-freebsd_i386-${TRAVIS_TAG:-dev}.tar.gz freebsd-i386
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir freebsd-amd64
|
|
|
|
- ln dnscrypt-proxy freebsd-amd64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt freebsd-amd64/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-freebsd_amd64-${TRAVIS_TAG:-dev}.tar.gz freebsd-amd64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=dragonfly GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir dragonflybsd-amd64
|
|
|
|
- ln dnscrypt-proxy dragonflybsd-amd64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt dragonflybsd-amd64/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-dragonflybsd_amd64-${TRAVIS_TAG:-dev}.tar.gz dragonflybsd-amd64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=netbsd GOARCH=386 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir netbsd-i386
|
|
|
|
- ln dnscrypt-proxy netbsd-i386/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt netbsd-i386/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-netbsd_i386-${TRAVIS_TAG:-dev}.tar.gz netbsd-i386
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=netbsd GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir netbsd-amd64
|
|
|
|
- ln dnscrypt-proxy netbsd-amd64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt netbsd-amd64/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-netbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz netbsd-amd64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=386 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir linux-i386
|
|
|
|
- ln dnscrypt-proxy linux-i386/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-i386/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_i386-${TRAVIS_TAG:-dev}.tar.gz linux-i386
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir linux-x86_64
|
|
|
|
- ln dnscrypt-proxy linux-x86_64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-x86_64/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_x86_64-${TRAVIS_TAG:-dev}.tar.gz linux-x86_64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=arm go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir linux-arm
|
|
|
|
- ln dnscrypt-proxy linux-arm/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-arm/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_arm-${TRAVIS_TAG:-dev}.tar.gz linux-arm
|
|
|
|
|
2018-01-17 09:59:58 +01:00
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=arm64 go build -ldflags="-s -w"
|
2018-01-17 09:59:58 +01:00
|
|
|
- mkdir linux-arm64
|
|
|
|
- ln dnscrypt-proxy linux-arm64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-arm64/
|
2018-01-17 09:59:58 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_arm64-${TRAVIS_TAG:-dev}.tar.gz linux-arm64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=mips go build -ldflags="-s -w"
|
2018-01-17 09:59:58 +01:00
|
|
|
- mkdir linux-mips
|
|
|
|
- ln dnscrypt-proxy linux-mips/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-mips/
|
2018-01-17 09:59:58 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_mips-${TRAVIS_TAG:-dev}.tar.gz linux-mips
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=mips64 go build -ldflags="-s -w"
|
2018-01-17 09:59:58 +01:00
|
|
|
- mkdir linux-mips64
|
|
|
|
- ln dnscrypt-proxy linux-mips64/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-mips64/
|
2018-01-17 09:59:58 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_mips64-${TRAVIS_TAG:-dev}.tar.gz linux-mips64
|
|
|
|
|
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=linux GOARCH=mips64le go build -ldflags="-s -w"
|
2018-01-17 09:59:58 +01:00
|
|
|
- mkdir linux-mips64le
|
|
|
|
- ln dnscrypt-proxy linux-mips64le/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt linux-mips64le/
|
2018-01-17 09:59:58 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-linux_mips64le-${TRAVIS_TAG:-dev}.tar.gz linux-mips64le
|
|
|
|
|
2018-01-10 17:27:48 +01:00
|
|
|
- go clean
|
2018-01-17 17:34:21 +01:00
|
|
|
- env GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w"
|
2018-01-10 17:27:48 +01:00
|
|
|
- mkdir macos
|
|
|
|
- ln dnscrypt-proxy macos/
|
2018-01-17 17:40:03 +01:00
|
|
|
- ln ../LICENSE dnscrypt-proxy.toml forwarding-rules.txt blacklist.txt macos/
|
2018-01-10 17:27:48 +01:00
|
|
|
- tar czpvf dnscrypt-proxy-macos-${TRAVIS_TAG:-dev}.tar.gz macos
|
|
|
|
|
|
|
|
- ls -l dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2018-01-10 22:15:28 +01:00
|
|
|
secure: J3K/wo3oW/ySl6X4Zk5PX+EVy4fa0qa4fbpKNivogch5yjYw2pgrlSvwto9TM12Gxi4tTMKiWYK4YBapNf+tm501s4OyS1G1rJR1fZ+iyaHgGBLD+QppbivZt+P7Do56agSili68Zcgm7MQfZbvOq9z42z3AJ71+UNTJmTp63voaAuyOF/VdLsmJHMd/5nmFJH6mfMrgMs720GCWxFgdq3NRM2AdVldsp1YmNb4qKqIzunmfxqG9TqVlpq35tNOhWA/Ll3rbsiDVeUpBAW5ked/qHyGRkFVk44O6cPSFGe035Txx0JviBshGxsNSP+aJL9T55hIj1dmuk6g5uhPqABU/zcdJvXOv11oqJuV/DGHO31UfVN6u744LJY6Y1lkd+UUNiOJDPGC80+6M2GbP7BFMZiO5qnYkxzktnYg9b6zIPwmj96XZSniDTAn+qemJf2S8rzShvBtWX29Q4odIaCfFUY8i0muowQ4Vep5S5FqVG+r/rQTXOUIUsNv4r/gP/y5hdtOMC2r1VSvWk068upmW6ovCtcmTghSfYcLCG5r+g5OE2mKj9kbx6RQMspewk9+pvOhNZKXsn/AIvvDC4V46MaDjFkdYN0VbsYB5NH11DGCPH7vDwJnAzzMWnofCkiTG07dJYlLUnD9iUgYoNkrxivAgQKnDP8C6Ka0RGdk=
|
2018-01-10 17:27:48 +01:00
|
|
|
file:
|
|
|
|
- dnscrypt-proxy-*.tar.gz
|
|
|
|
- dnscrypt-proxy-*.zip
|
|
|
|
file_glob: true
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: jedisct1/dnscrypt-proxy
|
|
|
|
condition: "${TRAVIS_GO_VERSION} == 1.9.2"
|
2018-01-10 22:49:17 +01:00
|
|
|
tags: true
|
2018-01-10 17:27:48 +01:00
|
|
|
|
|
|
|
after_deploy:
|
|
|
|
- ls -l dnscrypt-proxy-*.tar.gz
|