-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the before-commit.sh -> hack/ci/run-tests.sh, add Travis CI support
- remove also the `dep ensure -v --vendor-only`, go lint and go vet from before-commit script
- Loading branch information
Showing
12 changed files
with
62 additions
and
2,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: go | ||
go: "1.13" | ||
|
||
# Skip the install step. Don't `go get` dependencies. Only build with the code in vendor/ | ||
install: skip | ||
|
||
env: | ||
- GO111MODULE=off | ||
- RUN_ON_CI=true | ||
|
||
jobs: | ||
include: | ||
- stage: "Before commit checks" | ||
name: tests | ||
before_script: | ||
# Download the binary to bin folder in $GOPATH | ||
- curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep | ||
# Make the binary executable | ||
- chmod +x $GOPATH/bin/dep | ||
script: ./hack/ci/run-tests.sh |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
required = [ | ||
"github.com/golang/lint/golint", | ||
"golang.org/x/tools/cmd/goimports", | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Library of useful utilities for CI purposes. | ||
# | ||
|
||
readonly RED='\033[0;31m' | ||
readonly GREEN='\033[0;32m' | ||
readonly INVERTED='\033[7m' | ||
readonly NC='\033[0m' # No Color | ||
|
||
readonly LIB_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
# Prints first argument as header. Additionally prints current date. | ||
shout() { | ||
echo -e " | ||
################################################################################################# | ||
# $(date) | ||
# $1 | ||
################################################################################################# | ||
" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.