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 authored and aanm committed May 29, 2020
1 parent a462fc0 commit a6ca5d5
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 a6ca5d5

Please sign in to comment.