From 131aa846b61ceb3b89e3e35a3f1de2a350480a01 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sat, 17 Apr 2021 16:32:48 +0200 Subject: [PATCH] misc: added osx tests for tagless travis builds --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.travis.yml b/.travis.yml index 59da3957..9975d155 100644 --- a/.travis.yml +++ b/.travis.yml @@ -139,6 +139,30 @@ matrix: script: - env GO111MODULE=on make test + - name: OSX - tests + if: tag IS blank + os: osx + arch: amd64 + allow_failures: + - go: master + fast_finish: true + addons: + homebrew: + packages: + - libpcap + - libusb + - p7zip + update: true + env: + - TARGET_OS=darwin + - TARGET_ARCH=amd64 + - PATH="/usr/local/opt/libpcap/bin:$PATH" + - LDFLAGS="-L/usr/local/opt/libpcap/lib $LDFLAGS" + - CPPFLAGS="-I/usr/local/opt/libpcap/include $CPPFLAGS" + - PKG_CONFIG_PATH="/usr/local/opt/libpcap/lib/pkgconfig:$PKG_CONFIG_PATH" + script: + - env GO111MODULE=on make test + deploy: provider: releases api_key: