Skip to content

Commit

Permalink
ci: reduce number of caches to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 9, 2019
1 parent 21fae95 commit 5620616
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ node_unit_tests: &node_unit_tests
name: Install Dependencies
command: yarn install
- save_cache:
key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
paths:
- ./node_modules
- ./yarn.lock
Expand All @@ -60,22 +60,19 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-exporter-prometheus/node_modules
- packages/opentelemetry-metrics/node_modules
- packages/opentelemetry-tracing/node_modules
- save_cache:
key: npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- packages/opentelemetry-exporter-jaeger/node_modules
- packages/opentelemetry-exporter-zipkin/node_modules
- packages/opentelemetry-node/node_modules
- packages/opentelemetry-shim-opentracing/node_modules
- packages/opentelemetry-web/node_modules
- packages/opentelemetry-plugin-dns/node_modules
- save_cache:
key: npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
paths:
- packages/opentelemetry-plugin-grpc/node_modules
- packages/opentelemetry-plugin-http/node_modules
- packages/opentelemetry-plugin-http2/node_modules
- packages/opentelemetry-plugin-mongodb/node_modules
- save_cache:
key: npm-cache-03-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- packages/opentelemetry-plugin-redis/node_modules
- packages/opentelemetry-plugin-postgres/opentelemetry-plugin-pg/node_modules
- packages/opentelemetry-plugin-document-load/node_modules
Expand All @@ -86,10 +83,10 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-types/yarn.lock
- packages/opentelemetry-scope-async-hooks/yarn.lock
- packages/opentelemetry-core/yarn.lock
- packages/opentelemetry-exporter-prometheus/yarn.lock
- save_cache:
key: npm-cache-04-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-03-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}-1
paths:
- packages/opentelemetry-exporter-prometheus/yarn.lock
- packages/opentelemetry-metrics/yarn.lock
- packages/opentelemetry-tracing/yarn.lock
- packages/opentelemetry-exporter-jaeger/yarn.lock
Expand All @@ -99,9 +96,6 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-web/yarn.lock
- packages/opentelemetry-plugin-dns/yarn.lock
- packages/opentelemetry-plugin-grpc/yarn.lock
- save_cache:
key: npm-cache-05-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- packages/opentelemetry-plugin-http/yarn.lock
- packages/opentelemetry-plugin-http2/yarn.lock
- packages/opentelemetry-plugin-mongodb/yarn.lock
Expand Down

0 comments on commit 5620616

Please sign in to comment.