combine lint and boilerplate

pull/5738/head
Sharif Elgamal 2019-10-25 15:53:04 -07:00
parent 9c33e0b10f
commit c42d3aa3cc
No known key found for this signature in database
GPG Key ID: 23CC0225BD9FD702
2 changed files with 5 additions and 3 deletions

View File

@ -12,6 +12,8 @@ matrix:
- language: go
name: Code Lint
go: 1.12.12
env:
- TESTSUITE=lintall
before_install:
- sudo apt-get install -y libvirt-dev
script: make test

View File

@ -19,7 +19,7 @@ set -eu -o pipefail
TESTSUITE="${TESTSUITE:-all}" # if env variable not set run all the tests
exitcode=0
if [[ "$TESTSUITE" = "lint" ]] || [[ "$TESTSUITE" = "all" ]]
if [[ "$TESTSUITE" = "lint" ]] || [[ "$TESTSUITE" = "all" ]] || [[ "$TESTSUITE" = "lintall" ]]
then
echo "= make lint ============================================================="
make -s lint-ci && echo ok || ((exitcode += 4))
@ -30,7 +30,7 @@ fi
if [[ "$TESTSUITE" = "boilerplate" ]] || [[ "$TESTSUITE" = "all" ]]
if [[ "$TESTSUITE" = "boilerplate" ]] || [[ "$TESTSUITE" = "all" ]] || [[ "$TESTSUITE" = "lintall" ]]
then
echo "= boilerplate ==========================================================="
readonly ROOT_DIR=$(pwd)
@ -50,7 +50,7 @@ fi
if [[ "$TESTSUITE" = "unittest" ]] || [[ "$TESTSUITE" = "all" ]]
then
then
echo "= schema_check =========================================================="
go run deploy/minikube/schema_check.go >/dev/null && echo ok || ((exitcode += 16))