1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/.circleci/config.yml
rghetia 20b2f718b8
Add Circle ci (#41)
* fix compile errors.

* fix lint errors.

* add circle-ci job.

* rename IDHigh to TraceIDHigh

* rename the file.

* add go get for goimports and golangci-lint

* enable GO111MODULE and remove comments.

* remove working dir and update cache name

* Add TEST_RESULT env back.

* run go mod tidy.

* remove go mod download.

* add test coverage.

* fix TraceID.

* fix circlefi config error.

* remove install-tools.

* remove ALL_TEST_SRC from Makefile.
2019-07-02 16:21:24 -07:00

35 lines
868 B
YAML

version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12 #
environment:
TEST_RESULTS: /tmp/test-results # path to where test results will be saved
steps:
- checkout
- run: mkdir -p $TEST_RESULTS # create the test results directory
- restore_cache: # restores saved cache if no changes are detected since last run
keys:
- v1-pkg-{{ checksum "go.sum" }}
- run:
name: "Precommit and Coverage Report"
command: |
make circle-ci
mv coverage.html $TEST_RESULTS/
- save_cache:
key: v1-pkg-{{ checksum "go.sum" }}
paths:
- "~/go/pkg/mod"
- store_artifacts:
path: /tmp/test-results
destination: opentelemetry-go-test-output
- store_test_results:
path: /tmp/test-results