travis -- build binaries as a test as well

This commit is contained in:
Eugene Bujak 2018-08-30 19:06:08 +03:00 committed by Eugene Bujak
parent d53f9bafe9
commit f054dcede4
1 changed files with 10 additions and 0 deletions

View File

@ -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