Skip to content

Commit

Permalink
build: check go format of code before running actual tests
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Jul 15, 2021
1 parent 7463860 commit 95f6581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- run:
name: Check Go version
command: go version
- run:
name: "Enforce Go Formatted Code"
command: "! go fmt ./... 2>&1 | read"
- run:
name: Install dependencies
command: |
Expand All @@ -36,9 +39,6 @@ jobs:
command: |
mkdir -p testdata
curl -sL https://github.com/onnx/models/blob/master/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx\?raw\=true > /usr/local/go/src/github.com/hybridgroup/gocv/testdata/googlenet-9.onnx
- run:
name: "Enforce Go Formatted Code"
command: "! go fmt ./... 2>&1 | read"
- run:
name: Run main tests
command: |
Expand Down

0 comments on commit 95f6581

Please sign in to comment.