From 0d6fdc0098250b70c5e1cb6e14ab9f117e363893 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 28 May 2020 14:35:58 +0200 Subject: [PATCH] travis: run build checks and complete build This will allow various issues before actually running the tests in our CI. Use `-j 2` since Travis CI usually runs on 2 cores and some parts of the build benefit from that. Updates #11730 Signed-off-by: Tobias Klauser --- .travis/build.sh | 1 + .travis/prepare.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis/build.sh b/.travis/build.sh index 71271aeb3d77..0d1f367ea777 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -4,6 +4,7 @@ set -o errexit export CFLAGS="-Werror" +make -j 2 make unit-tests $HOME/gopath/bin/goveralls -coverprofile=coverage-all.out -service=travis-ci || true diff --git a/.travis/prepare.sh b/.travis/prepare.sh index 9fca1ee8a3e9..ee54e6a541c7 100755 --- a/.travis/prepare.sh +++ b/.travis/prepare.sh @@ -48,3 +48,4 @@ export PATH="/usr/local/clang/bin:$PATH" # disable go modules to avoid downloading all dependencies when doing go get GO111MODULE=off go get golang.org/x/tools/cmd/cover GO111MODULE=off go get github.com/mattn/goveralls +GO111MODULE=off go get github.com/gordonklaus/ineffassign