dnscrypt-proxy/.travis.yml

252 lines
11 KiB
YAML
Raw Normal View History

dist: bionic
2018-01-10 17:27:48 +01:00
language: go
os:
2018-04-27 00:34:08 +02:00
- linux
2018-01-10 17:27:48 +01:00
go:
2019-02-26 08:51:25 +01:00
- 1.x
addons:
apt:
update: true
2018-01-10 17:27:48 +01:00
script:
2018-04-27 00:34:08 +02:00
- gimme --list
- echo $TRAVIS_GO_VERSION
- cd dnscrypt-proxy
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=windows GOARCH=386 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir win32
- ln dnscrypt-proxy.exe win32/
2019-11-29 01:13:11 +01:00
- cp ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt win32/
2018-04-27 00:34:08 +02:00
- for i in win32/LICENSE win32/*.toml win32/*.txt; do ex -bsc '%!awk "{sub(/$/,\"\r\")}1"'
-cx "$i"; done
- ln ../windows/* win32/
- zip -9 -r dnscrypt-proxy-win32-${TRAVIS_TAG:-dev}.zip win32
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=windows GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir win64
- ln dnscrypt-proxy.exe win64/
2019-11-29 01:13:11 +01:00
- cp ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt win64/
2018-04-27 00:34:08 +02:00
- for i in win64/LICENSE win64/*.toml win64/*.txt; do ex -bsc '%!awk "{sub(/$/,\"\r\")}1"'
-cx "$i"; done
- ln ../windows/* win64/
- zip -9 -r dnscrypt-proxy-win64-${TRAVIS_TAG:-dev}.zip win64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GO386=387 GOOS=openbsd GOARCH=386 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir openbsd-i386
- ln dnscrypt-proxy openbsd-i386/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt openbsd-i386/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-openbsd_i386-${TRAVIS_TAG:-dev}.tar.gz openbsd-i386
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=openbsd GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir openbsd-amd64
- ln dnscrypt-proxy openbsd-amd64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt openbsd-amd64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-openbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz openbsd-amd64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=freebsd GOARCH=386 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir freebsd-i386
- ln dnscrypt-proxy freebsd-i386/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt freebsd-i386/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-freebsd_i386-${TRAVIS_TAG:-dev}.tar.gz freebsd-i386
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=freebsd GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir freebsd-amd64
- ln dnscrypt-proxy freebsd-amd64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt freebsd-amd64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-freebsd_amd64-${TRAVIS_TAG:-dev}.tar.gz freebsd-amd64
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=freebsd GOARCH=arm go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir freebsd-arm
- ln dnscrypt-proxy freebsd-arm/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt freebsd-arm/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-freebsd_arm-${TRAVIS_TAG:-dev}.tar.gz freebsd-arm
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=freebsd GOARCH=arm GOARM=7 go build -mod vendor -ldflags="-s -w"
- mkdir freebsd-armv7
- ln dnscrypt-proxy freebsd-armv7/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt freebsd-armv7/
- tar czpvf dnscrypt-proxy-freebsd_armv7-${TRAVIS_TAG:-dev}.tar.gz freebsd-armv7
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=dragonfly GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir dragonflybsd-amd64
- ln dnscrypt-proxy dragonflybsd-amd64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt dragonflybsd-amd64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-dragonflybsd_amd64-${TRAVIS_TAG:-dev}.tar.gz dragonflybsd-amd64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=netbsd GOARCH=386 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir netbsd-i386
- ln dnscrypt-proxy netbsd-i386/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt netbsd-i386/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-netbsd_i386-${TRAVIS_TAG:-dev}.tar.gz netbsd-i386
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=netbsd GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir netbsd-amd64
- ln dnscrypt-proxy netbsd-amd64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt netbsd-amd64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-netbsd_amd64-${TRAVIS_TAG:-dev}.tar.gz netbsd-amd64
2019-09-07 15:02:09 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=solaris GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2019-09-07 15:02:09 +02:00
- mkdir solaris-amd64
- ln dnscrypt-proxy solaris-amd64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt solaris-amd64/
2019-09-07 15:02:09 +02:00
- tar czpvf dnscrypt-proxy-solaris_amd64-${TRAVIS_TAG:-dev}.tar.gz solaris-amd64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-i386
- ln dnscrypt-proxy linux-i386/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-i386/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_i386-${TRAVIS_TAG:-dev}.tar.gz linux-i386
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-x86_64
- ln dnscrypt-proxy linux-x86_64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-x86_64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_x86_64-${TRAVIS_TAG:-dev}.tar.gz linux-x86_64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-arm
- ln dnscrypt-proxy linux-arm/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-arm/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_arm-${TRAVIS_TAG:-dev}.tar.gz linux-arm
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-arm64
- ln dnscrypt-proxy linux-arm64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-arm64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_arm64-${TRAVIS_TAG:-dev}.tar.gz linux-arm64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-mips
- ln dnscrypt-proxy linux-mips/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-mips/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_mips-${TRAVIS_TAG:-dev}.tar.gz linux-mips
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-mipsle
- ln dnscrypt-proxy linux-mipsle/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-mipsle/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_mipsle-${TRAVIS_TAG:-dev}.tar.gz linux-mipsle
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-mips64
- ln dnscrypt-proxy linux-mips64/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-mips64/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_mips64-${TRAVIS_TAG:-dev}.tar.gz linux-mips64
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir linux-mips64le
- ln dnscrypt-proxy linux-mips64le/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt linux-mips64le/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-linux_mips64le-${TRAVIS_TAG:-dev}.tar.gz linux-mips64le
2018-04-27 00:34:08 +02:00
- go clean
2019-10-12 22:09:59 +02:00
- env GOOS=darwin GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir macos
- ln dnscrypt-proxy macos/
2019-11-29 01:13:11 +01:00
- ln ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt macos/
2018-04-27 00:34:08 +02:00
- tar czpvf dnscrypt-proxy-macos-${TRAVIS_TAG:-dev}.tar.gz macos
2018-04-27 00:34:08 +02:00
- go clean
- env CC=arm-linux-androideabi-clang CXX=arm-linux-androideabi-clang++
CGO_ENABLED=1
2019-10-12 22:09:59 +02:00
GOOS=android GOARCH=arm GOARM=7 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir android-arm
- ln dnscrypt-proxy android-arm/
2019-11-29 01:13:11 +01:00
- cp ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt android-arm/
2018-04-27 00:34:08 +02:00
- zip -9 -r dnscrypt-proxy-android_arm-${TRAVIS_TAG:-dev}.zip android-arm
2018-04-27 00:34:08 +02:00
- go clean
- env CC=aarch64-linux-android-clang CXX=aarch64-linux-android-clang++
CGO_ENABLED=1
2019-10-12 22:09:59 +02:00
GOOS=android GOARCH=arm64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir android-arm64
- ln dnscrypt-proxy android-arm64/
2019-11-29 01:13:11 +01:00
- cp ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt android-arm64/
2018-04-27 00:34:08 +02:00
- zip -9 -r dnscrypt-proxy-android_arm64-${TRAVIS_TAG:-dev}.zip android-arm64
2018-04-27 00:34:08 +02:00
- go clean
- env CC=i686-linux-android-clang CXX=i686-linux-android-clang++
CGO_ENABLED=1 GOOS=android
2019-10-12 22:09:59 +02:00
GOARCH=386 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir android-i386
- ln dnscrypt-proxy android-i386/
2019-11-29 01:13:11 +01:00
- cp ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt android-i386/
2018-04-27 00:34:08 +02:00
- zip -9 -r dnscrypt-proxy-android_i386-${TRAVIS_TAG:-dev}.zip android-i386
2018-04-27 00:34:08 +02:00
- go clean
- env CC=x86_64-linux-android-clang CXX=x86_64-linux-android-clang++
CGO_ENABLED=1
2019-10-12 22:09:59 +02:00
GOOS=android GOARCH=amd64 go build -mod vendor -ldflags="-s -w"
2018-04-27 00:34:08 +02:00
- mkdir android-x86_64
- ln dnscrypt-proxy android-x86_64/
2019-11-29 01:13:11 +01:00
- cp ../LICENSE example-dnscrypt-proxy.toml localhost.pem example-*.txt android-x86_64/
2018-04-27 00:34:08 +02:00
- zip -9 -r dnscrypt-proxy-android_x86_64-${TRAVIS_TAG:-dev}.zip android-x86_64
after_success:
2018-04-27 00:34:08 +02:00
- ls -l dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip
2018-01-10 17:27:48 +01:00
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:
2018-04-27 00:34:08 +02:00
- dnscrypt-proxy-*.tar.gz
- dnscrypt-proxy-*.zip
- dnscrypt-proxy-*.minisig
2018-01-10 17:27:48 +01:00
file_glob: true
skip_cleanup: true
on:
2019-10-12 22:13:16 +02:00
repo: DNSCrypt/dnscrypt-proxy
2018-01-10 22:49:17 +01:00
tags: true
before_deploy:
- sudo apt-get -y install libsodium-dev
2019-08-07 14:55:49 +02:00
- git clone --depth 1 https://github.com/jedisct1/minisign.git
2018-04-27 00:34:08 +02:00
- cd minisign/src
2019-12-09 23:45:41 +01:00
- gcc -O2 -o /tmp/bin/minisign -D_GNU_SOURCE *.c -lsodium
2018-04-27 01:14:14 +02:00
- cd -
2018-04-27 00:34:08 +02:00
- minisign -v
- echo '#' > /tmp/minisign.key
- echo "$MINISIGN_SK" >> /tmp/minisign.key
- echo | minisign -s /tmp/minisign.key -Sm dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip
2018-02-22 18:51:30 +01:00
before_install:
- NDK_VER=r18
- curl -LO https://dl.google.com/android/repository/android-ndk-${NDK_VER}-linux-x86_64.zip
2018-04-27 00:34:08 +02:00
- unzip -q android-ndk-${NDK_VER}-linux-x86_64.zip -d $HOME
- rm android-ndk-${NDK_VER}-linux-x86_64.zip
- NDK_TOOLS=$HOME/android-ndk-${NDK_VER}
- NDK_STANDALONE=$HOME/ndk-standalone-${NDK_VER}
- MAKE_TOOLCHAIN=$NDK_TOOLS/build/tools/make_standalone_toolchain.py
- for arch in x86 arm; do python $MAKE_TOOLCHAIN --arch $arch --api 19
--install-dir $NDK_STANDALONE/$arch; PATH=$PATH:$NDK_STANDALONE/$arch/bin; done
- for arch in x86_64 arm64; do python $MAKE_TOOLCHAIN --arch $arch --api 21
2018-04-27 00:34:08 +02:00
--install-dir $NDK_STANDALONE/$arch; PATH=$PATH:$NDK_STANDALONE/$arch/bin; done
- rm -rf $NDK_TOOLS
env:
global:
2018-04-27 00:34:08 +02:00
- secure: cuTXb4v5NwTr1XmkiHGkFir8fMiiBMnraCrls3thdDRlSTix0CiQc/H5Vh8SHauuG6VwVyrCT/Xsf0UQUmnULkPHjvuiNehb+bG4J3fz7hF94glBdQ8vxTuMmnHfJEYTQRLwCsWMBEC1wekw13O8J/0opFNG5neduns3Z1/rD5VSlBwgc8/4lomEp0fadIvzLeS7f5mxeXAD5Z9KBmc09uCjxVoF9Qsk1r901B0c0RMxIbJWyW9ZhDIVr/aEUN/tU0EXMKOA85sizg2moAigb8RZ1WCTh7utLGKpAyQegNk/unkksKMzZFkUCwHkrxlujwoe93wUS4rvZ+3nHMtLQdR+OfMeVs4/zvvQVq2f3bOXgkxgvhq6Bop0RK0xyEJffa5hUFbGNKhIFkLFLn1Ok28t2q7NOFPr0H2egHlkwgPztyhYMYb9C5PW4zd9buI0LS5452C4jXH5raBMfx844wTzaBbN689AKiYb84Qesqczss/o7eC7V48kh823dlZ/s2//gtp1ceqdAtNvp4dy7X/ECA/vNlpYisrtkR/CsFpJjGoTvS37leVMpmc5bn39dkoa5ZLliu7CaFRefbavcWWEImVStll9FBQ6+Ck9+41gczl9Rr7eGIV9ZZ/fmdkLNgxIpoAhZRee/dZD+/0gUExHxXXn10MqPuNVytVPiuU=