github.com/theliebeskind/genfig@v0.1.5-alpha/.circleci/config.yml (about) 1 version: 2 2 jobs: 3 build: 4 docker: 5 - image: circleci/golang:1.12 6 7 environment: # environment variables for the build itself 8 TEST_RESULTS: /tmp/test-results/go # path to where test results will be saved 9 10 steps: 11 - checkout 12 13 - restore_cache: 14 keys: 15 - go-mod-v1-{{ checksum "go.sum" }} 16 17 # Tests 18 - run: mkdir -p $TEST_RESULTS # create the test results directory 19 - run: 20 name: Tests 21 command: gotestsum --junitfile ${TEST_RESULTS}/results.xml -- -coverprofile="coverage.txt" -covermode=atomic `go list ./... | grep -v "fixtures\|example\|models"` 22 23 - run: 24 name: Codecov 25 command: bash <(curl -s https://codecov.io/bash) -X gcov 26 27 - run: make build 28 - save_cache: 29 key: go-mod-v1-{{ checksum "go.sum" }} 30 paths: 31 - "/go/pkg/mod" 32 33 - store_artifacts: # upload test summary for display in Artifacts 34 path: /tmp/test-results 35 destination: raw-test-output 36 37 - store_test_results: # upload test results for display in Test Summary 38 path: /tmp/test-results 39 40 workflows: 41 version: 2 42 build-workflow: 43 jobs: 44 - build