github.com/hairyhenderson/templater@v3.5.0+incompatible/.circleci/config.yml (about) 1 version: 2.1 2 3 references: 4 workspace_root: &workspace_root 5 /go/src/github.com/hairyhenderson/gomplate 6 attach_workspace: &attach_workspace 7 attach_workspace: 8 at: *workspace_root 9 10 executors: 11 ci-executor: 12 docker: 13 - image: hairyhenderson/gomplate-ci-build:latest 14 environment: 15 CIRCLE_TEST_REPORTS: /tmp/test-results 16 working_directory: *workspace_root 17 18 jobs: 19 build: 20 executor: ci-executor 21 steps: 22 - checkout 23 - run: make build 24 - store_artifacts: 25 path: bin 26 destination: binaries 27 - persist_to_workspace: 28 root: *workspace_root 29 # Must be relative path from root 30 paths: 31 - ./ 32 test: 33 executor: ci-executor 34 steps: 35 - checkout 36 - run: cc-test-reporter before-build 37 - run: 38 name: make test 39 command: | 40 trap "go-junit-report < $CIRCLE_TEST_REPORTS/go-test.out > $CIRCLE_TEST_REPORTS/report.xml" EXIT 41 make test | tee $CIRCLE_TEST_REPORTS/go-test.out 42 cc-test-reporter after-build --exit-code $? 43 - store_test_results: 44 path: /tmp/test-results 45 lint: 46 executor: ci-executor 47 steps: 48 - checkout 49 - run: make lint 50 integration: 51 executor: ci-executor 52 steps: 53 - checkout 54 - *attach_workspace 55 - run: make integration 56 57 workflows: 58 version: 2 59 build: 60 jobs: 61 - build 62 - test 63 - lint 64 - integration