2021-05-14 23:18:20 +00:00
|
|
|
pinned_go: &pinned_go go=1.16.3-1
|
2021-01-28 16:10:19 +00:00
|
|
|
pinned_go_fips: &pinned_go_fips go-fips=1.15.5-3
|
|
|
|
|
2019-11-04 20:28:48 +00:00
|
|
|
build_dir: &build_dir /cfsetup_build
|
2020-11-20 09:48:02 +00:00
|
|
|
default-flavor: buster
|
2018-10-19 19:01:08 +00:00
|
|
|
stretch: &stretch
|
2018-07-24 19:55:18 +00:00
|
|
|
build:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
2021-01-28 16:10:19 +00:00
|
|
|
- *pinned_go_fips
|
2018-07-24 19:55:18 +00:00
|
|
|
- build-essential
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
2021-01-28 16:10:19 +00:00
|
|
|
- export FIPS=true
|
2018-07-25 21:05:46 +00:00
|
|
|
- make cloudflared
|
|
|
|
build-deb:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
2021-01-28 16:10:19 +00:00
|
|
|
- *pinned_go_fips
|
2018-07-25 21:05:46 +00:00
|
|
|
- build-essential
|
|
|
|
- fakeroot
|
|
|
|
- rubygem-fpm
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
2021-01-28 16:10:19 +00:00
|
|
|
- export FIPS=true
|
2018-07-25 21:05:46 +00:00
|
|
|
- make cloudflared-deb
|
2020-07-21 00:42:50 +00:00
|
|
|
build-deb-arm64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- build-essential
|
|
|
|
- fakeroot
|
|
|
|
- rubygem-fpm
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=arm64
|
|
|
|
- make cloudflared-deb
|
2020-06-26 18:47:11 +00:00
|
|
|
publish-deb:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
2021-01-28 16:10:19 +00:00
|
|
|
- *pinned_go_fips
|
2020-06-26 18:47:11 +00:00
|
|
|
- build-essential
|
|
|
|
- fakeroot
|
|
|
|
- rubygem-fpm
|
2020-06-30 19:46:05 +00:00
|
|
|
- openssh-client
|
2020-06-26 18:47:11 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
2021-01-28 16:10:19 +00:00
|
|
|
- export FIPS=true
|
2020-06-26 18:47:11 +00:00
|
|
|
- make publish-deb
|
2018-07-26 20:45:18 +00:00
|
|
|
release-linux-amd64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
2021-01-28 16:10:19 +00:00
|
|
|
- *pinned_go_fips
|
2018-07-26 20:45:18 +00:00
|
|
|
- build-essential
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
2021-01-28 16:10:19 +00:00
|
|
|
- export FIPS=true
|
2018-07-26 20:45:18 +00:00
|
|
|
- make release
|
2020-06-23 21:23:40 +00:00
|
|
|
github-release-linux-amd64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
2021-01-28 16:10:19 +00:00
|
|
|
- *pinned_go_fips
|
2020-06-23 21:23:40 +00:00
|
|
|
- build-essential
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: &install_pygithub
|
2020-06-23 21:23:40 +00:00
|
|
|
- pip3 install pygithub
|
2020-09-18 21:25:12 +00:00
|
|
|
post-cache:
|
2020-06-23 21:23:40 +00:00
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
2021-01-28 16:10:19 +00:00
|
|
|
- export FIPS=true
|
2020-06-23 21:23:40 +00:00
|
|
|
- make github-release
|
2018-07-26 20:45:18 +00:00
|
|
|
release-linux-armv6:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- crossbuild-essential-armhf
|
|
|
|
- gcc-arm-linux-gnueabihf
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=arm
|
|
|
|
- export CC=arm-linux-gnueabihf-gcc
|
|
|
|
- make release
|
2020-06-23 21:23:40 +00:00
|
|
|
github-release-linux-armv6:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- crossbuild-essential-armhf
|
|
|
|
- gcc-arm-linux-gnueabihf
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-06-23 21:23:40 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=arm
|
|
|
|
- export CC=arm-linux-gnueabihf-gcc
|
|
|
|
- make github-release
|
2018-07-26 20:45:18 +00:00
|
|
|
release-linux-386:
|
2019-03-29 23:05:11 +00:00
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- gcc-multilib
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=386
|
|
|
|
- make release
|
2020-06-23 21:23:40 +00:00
|
|
|
github-release-linux-386:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- gcc-multilib
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-06-23 21:23:40 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=386
|
|
|
|
- make github-release
|
2018-07-26 20:45:18 +00:00
|
|
|
release-windows-amd64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- gcc-mingw-w64
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=windows
|
|
|
|
- export GOARCH=amd64
|
|
|
|
- export CC=x86_64-w64-mingw32-gcc
|
|
|
|
- make release
|
2020-06-23 21:23:40 +00:00
|
|
|
github-release-windows-amd64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- gcc-mingw-w64
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-06-23 21:23:40 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=windows
|
|
|
|
- export GOARCH=amd64
|
|
|
|
- export CC=x86_64-w64-mingw32-gcc
|
|
|
|
- make github-release
|
2018-07-26 20:45:18 +00:00
|
|
|
release-windows-386:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- gcc-mingw-w64
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=windows
|
|
|
|
- export GOARCH=386
|
|
|
|
- export CC=i686-w64-mingw32-gcc-win32
|
|
|
|
- make release
|
2020-06-23 21:23:40 +00:00
|
|
|
github-release-windows-386:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- gcc-mingw-w64
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-06-23 21:23:40 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=windows
|
|
|
|
- export GOARCH=386
|
|
|
|
- export CC=i686-w64-mingw32-gcc-win32
|
|
|
|
- make github-release
|
2020-07-28 16:18:26 +00:00
|
|
|
github-release-linux-arm64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- crossbuild-essential-armhf
|
|
|
|
- g++-aarch64-linux-gnu
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-07-28 16:18:26 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=arm64
|
|
|
|
- export CC=aarch64-linux-gnu-gcc
|
|
|
|
- make github-release
|
2020-08-07 19:01:38 +00:00
|
|
|
github-release-macos-amd64:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-08-07 19:01:38 +00:00
|
|
|
post-cache:
|
|
|
|
- make github-mac-upload
|
2018-07-25 21:05:46 +00:00
|
|
|
test:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
2021-01-28 16:10:19 +00:00
|
|
|
- *pinned_go_fips
|
2018-07-25 21:05:46 +00:00
|
|
|
- build-essential
|
2021-02-10 16:42:09 +00:00
|
|
|
- gotest-to-teamcity
|
2021-03-23 14:30:43 +00:00
|
|
|
pre-cache:
|
|
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
|
|
- go get github.com/BurntSushi/go-sumtype
|
2018-07-25 21:05:46 +00:00
|
|
|
post-cache:
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
2021-01-28 16:10:19 +00:00
|
|
|
- export FIPS=true
|
2019-11-04 20:28:48 +00:00
|
|
|
- export PATH="$HOME/go/bin:$PATH"
|
2021-03-23 14:30:43 +00:00
|
|
|
- ./fmt-check.sh
|
2021-02-10 16:42:09 +00:00
|
|
|
- make test | gotest-to-teamcity
|
2021-03-08 11:07:26 +00:00
|
|
|
component-test:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go_fips
|
|
|
|
- python3.7
|
|
|
|
- python3-pip
|
|
|
|
- python3-setuptools
|
2021-03-12 13:37:53 +00:00
|
|
|
# procps installs the ps command which is needed in test_sysv_service because the init script
|
|
|
|
# uses ps pid to determine if the agent is running
|
|
|
|
- procps
|
2021-03-08 11:07:26 +00:00
|
|
|
pre-cache-copy-paths:
|
|
|
|
- component-tests/requirements.txt
|
|
|
|
pre-cache:
|
|
|
|
- sudo pip3 install --upgrade -r component-tests/requirements.txt
|
|
|
|
post-cache:
|
2021-03-25 20:45:53 +00:00
|
|
|
# Creates and routes a Named Tunnel for this build. Also constructs config file from env vars.
|
|
|
|
- python3 component-tests/setup.py --type create
|
2021-03-08 11:07:26 +00:00
|
|
|
- pytest component-tests
|
2021-03-25 20:45:53 +00:00
|
|
|
# The Named Tunnel is deleted and its route unprovisioned here.
|
|
|
|
- python3 component-tests/setup.py --type cleanup
|
2020-03-30 19:36:32 +00:00
|
|
|
update-homebrew:
|
|
|
|
builddeps:
|
2020-06-16 00:08:10 +00:00
|
|
|
- openssh-client
|
2020-03-30 19:36:32 +00:00
|
|
|
- s3cmd
|
|
|
|
post-cache:
|
|
|
|
- .teamcity/update-homebrew.sh
|
2020-07-29 17:50:25 +00:00
|
|
|
github-message-release:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- python3-setuptools
|
|
|
|
- python3-pip
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache: *install_pygithub
|
2020-07-29 17:50:25 +00:00
|
|
|
post-cache:
|
|
|
|
- make github-message
|
2020-09-22 21:56:23 +00:00
|
|
|
build-junos:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- build-essential
|
|
|
|
- python3
|
|
|
|
- genisoimage
|
|
|
|
- jetez
|
|
|
|
pre-cache:
|
|
|
|
- ln -s /usr/bin/genisoimage /usr/bin/mkisofs
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=freebsd
|
|
|
|
- export GOARCH=amd64
|
|
|
|
- make cloudflared-junos
|
|
|
|
publish-junos:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps:
|
|
|
|
- *pinned_go
|
|
|
|
- build-essential
|
|
|
|
- python3
|
|
|
|
- genisoimage
|
|
|
|
- jetez
|
|
|
|
- s4cmd
|
|
|
|
pre-cache:
|
|
|
|
- ln -s /usr/bin/genisoimage /usr/bin/mkisofs
|
|
|
|
post-cache:
|
|
|
|
- export GOOS=freebsd
|
|
|
|
- export GOARCH=amd64
|
|
|
|
- make publish-cloudflared-junos
|
2018-10-19 19:01:08 +00:00
|
|
|
|
2020-05-20 16:26:28 +00:00
|
|
|
buster: *stretch
|
2020-11-20 09:48:02 +00:00
|
|
|
bullseye: *stretch
|
2020-06-30 15:43:54 +00:00
|
|
|
centos-7:
|
|
|
|
publish-rpm:
|
|
|
|
build_dir: *build_dir
|
2020-07-09 15:57:19 +00:00
|
|
|
builddeps: &el7_builddeps
|
2020-06-30 15:43:54 +00:00
|
|
|
- https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache:
|
|
|
|
- yum install -y fakeroot
|
2021-05-14 23:18:20 +00:00
|
|
|
- wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -P /tmp/
|
|
|
|
- tar -C /usr/local -xzf /tmp/go1.16.3.linux-amd64.tar.gz
|
2020-09-18 21:25:12 +00:00
|
|
|
post-cache:
|
2020-06-30 15:43:54 +00:00
|
|
|
- export PATH=$PATH:/usr/local/go/bin
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
|
|
|
- make publish-rpm
|
2020-07-09 15:57:19 +00:00
|
|
|
build-rpm:
|
|
|
|
build_dir: *build_dir
|
|
|
|
builddeps: *el7_builddeps
|
2020-09-18 21:25:12 +00:00
|
|
|
pre-cache:
|
|
|
|
- yum install -y fakeroot
|
2021-05-14 23:18:20 +00:00
|
|
|
- wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -P /tmp/
|
|
|
|
- tar -C /usr/local -xzf /tmp/go1.16.3.linux-amd64.tar.gz
|
2020-09-18 21:25:12 +00:00
|
|
|
post-cache:
|
2020-07-09 15:57:19 +00:00
|
|
|
- export PATH=$PATH:/usr/local/go/bin
|
|
|
|
- export GOOS=linux
|
|
|
|
- export GOARCH=amd64
|
|
|
|
- make cloudflared-rpm
|