From f054dcede4aab0b42df911f1baf2f4cd7009cf6f Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Thu, 30 Aug 2018 19:06:08 +0300 Subject: [PATCH] travis -- build binaries as a test as well --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2aeceeb8..194dc14b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,17 @@ go: - master - tip +os: + - linux + - osx + +before_install: + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -o- -L https://yarnpkg.com/install.sh | bash; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn; fi + script: - cd dnsfilter && go get -d -t . && go test - cd ../coredns_plugin && go get -d -t . && go test + - cd .. && make