Skip to content

Commit

Permalink
travis: run build checks and complete build
Browse files Browse the repository at this point in the history
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 <tklauser@distanz.ch>
  • Loading branch information
tklauser committed May 28, 2020
1 parent 27924d2 commit 0d6fdc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis/build.sh
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .travis/prepare.sh
Expand Up @@ -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

0 comments on commit 0d6fdc0

Please sign in to comment.