...

Text file src/github.com/qri-io/jsonschema/.circleci/config.yml

Documentation: github.com/qri-io/jsonschema/.circleci

     1version: '2'
     2jobs:
     3  build:
     4    working_directory: /go/src/github.com/qri-io/jsonschema
     5    docker:
     6      - image: circleci/golang:1.13
     7        environment:
     8          GOLANG_ENV: test
     9          PORT: 3000
    10    environment:
    11      TEST_RESULTS: /tmp/test-results
    12    steps:
    13      - checkout
    14      - run: mkdir -p $TEST_RESULTS
    15      - run: go get github.com/jstemmer/go-junit-report golang.org/x/lint/golint github.com/sergi/go-diff/diffmatchpatch
    16      - run:
    17          name: Install deps
    18          command: >
    19            go get -v -d -u
    20            github.com/jstemmer/go-junit-report
    21            github.com/qri-io/jsonpointer
    22      - run:
    23          name: Run Lint Tests
    24          command: golint -set_exit_status ./...
    25      - run:
    26          name: Run Tests
    27          command: go test -v -race -coverprofile=coverage.txt -covermode=atomic
    28      - run:
    29          name: Publish coverage info to codecov.io
    30          command: bash <(curl -s https://codecov.io/bash)

View as plain text