2020-11-10 06:24:18 -05:00
|
|
|
language: go
|
2021-02-24 16:40:35 -05:00
|
|
|
dist: bionic
|
|
|
|
sudo: required
|
2020-11-10 06:24:18 -05:00
|
|
|
go:
|
2021-02-24 16:40:35 -05:00
|
|
|
- 1.16.x # Latest go version
|
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-multilib
|
2021-02-24 16:16:03 -05:00
|
|
|
|
|
|
|
before_install:
|
2021-02-24 16:52:19 -05:00
|
|
|
- # skip
|
2021-02-24 16:16:03 -05:00
|
|
|
|
|
|
|
install:
|
|
|
|
- # skip
|
|
|
|
|
|
|
|
script:
|
|
|
|
- go get -t -v ./...
|
|
|
|
- diff -u <(echo -n) <(gofmt -d .)
|
|
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
2021-02-24 16:40:35 -05:00
|
|
|
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
2021-02-24 16:52:19 -05:00
|
|
|
- make build
|
|
|
|
- make build-cross-plat
|
2021-02-24 16:16:03 -05:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true # Important, otherwise the build output would be purged.
|
|
|
|
api_key:
|
|
|
|
# *encrypted* GitHub key, as the output of the Travis CI CLI tool
|
|
|
|
secure: TODO...
|
|
|
|
file:
|
|
|
|
- dist/wg-portal_linux_amd64
|
|
|
|
- dist/wg-portal_linux_arm64
|
|
|
|
- dist/wg-portal_linux_arm
|
|
|
|
- dist/wg-portal.env
|
|
|
|
- dist/wg-portal.service
|
|
|
|
on:
|
|
|
|
repo: h44z/wg-portal
|
|
|
|
tags: true # The deployment happens only if the commit has a tag.
|