Skip to content

Commit

Permalink
Move ci related scripts to ci directory. Also make some minor changes…
Browse files Browse the repository at this point in the history
… to the ci files.
  • Loading branch information
balshetzer committed Jul 19, 2017
1 parent 2f85419 commit 7a456f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ go:
- 1.7
- 1.8

install: export PATH=$(go env GOPATH)/bin:$PATH

script:
- go build ./...
- go install github.com/golang/mock/mockgen
- ./check_go_fmt.sh
- ./check_go_generate.sh
- ./ci/check_go_fmt.sh
- ./ci/check_go_generate.sh
- go test -v ./...
3 changes: 1 addition & 2 deletions check_go_fmt.sh → ci/check_go_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# This script is used by the CI to check if the code is gofmt formatted.

set -euo pipefail
cd "$( dirname "$0" )"

GOFMT_DIFF=$( gofmt -d $( IFS='\n'; find . -type f -name '*.go' ) )
GOFMT_DIFF=$(IFS=$'\n'; gofmt -d $( find . -type f -name '*.go' ) )
if [[ -n "${GOFMT_DIFF}" ]]; then
echo "${GOFMT_DIFF}"
echo
Expand Down
1 change: 0 additions & 1 deletion check_go_generate.sh → ci/check_go_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# each time before executing this script.

set -euo pipefail
cd "$( dirname "$0" )"

TEMP_DIR=$( mktemp -d )
function cleanup() {
Expand Down

0 comments on commit 7a456f2

Please sign in to comment.