version: '2' jobs: build: working_directory: /go/src/github.com/qri-io/jsonschema docker: - image: circleci/golang:1.13 environment: GOLANG_ENV: test PORT: 3000 environment: TEST_RESULTS: /tmp/test-results steps: - checkout - run: mkdir -p $TEST_RESULTS - run: go get github.com/jstemmer/go-junit-report golang.org/x/lint/golint github.com/sergi/go-diff/diffmatchpatch - run: name: Install deps command: > go get -v -d -u github.com/jstemmer/go-junit-report github.com/qri-io/jsonpointer - run: name: Run Lint Tests command: golint -set_exit_status ./... - run: name: Run Tests command: go test -v -race -coverprofile=coverage.txt -covermode=atomic - run: name: Publish coverage info to codecov.io command: bash <(curl -s https://codecov.io/bash)