mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
e6d725626d
* Simplify Makefile In particular, this change: * Ensures that the race checker is always used for all tests * Removes redundant commands * Splits out `generate` and `lint` as their own commands * Renames the `circle-ci` command to the more generic `ci` * Use GOTEST_WITH_COVERAGE instead of old name * Fix test-with-coverage command * Fix test-386 command
35 lines
868 B
YAML
35 lines
868 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/golang:1.13.3
|
|
|
|
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:
|
|
- go-pkg-mod-{{ checksum "go.sum" }}
|
|
|
|
- run:
|
|
name: "Precommit and Coverage Report"
|
|
command: |
|
|
make ci
|
|
mv coverage.html $TEST_RESULTS/
|
|
|
|
- save_cache:
|
|
key: go-pkg-mod-{{ 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
|