Skip to content

Commit

Permalink
ci: invalidate caches for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 9, 2019
1 parent 9cffeeb commit 21fae95
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ node_unit_tests: &node_unit_tests
echo "CIRCLE_NODE_VERSION=${CIRCLE_NODE_VERSION}"
- restore_cache:
keys:
- npm-cache-1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- restore_cache:
keys:
- npm-cache-2-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- restore_cache:
keys:
- npm-cache-3-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- npm-cache-03-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- restore_cache:
keys:
- npm-cache-4-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- npm-cache-04-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- restore_cache:
keys:
- npm-cache-5-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- npm-cache-05-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
- run:
name: Install Dependencies
command: yarn install
- save_cache:
key: npm-cache-1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-01-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- ./node_modules
- ./yarn.lock
Expand All @@ -61,7 +61,7 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-metrics/node_modules
- packages/opentelemetry-tracing/node_modules
- save_cache:
key: npm-cache-2-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-02-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- packages/opentelemetry-exporter-jaeger/node_modules
- packages/opentelemetry-exporter-zipkin/node_modules
Expand All @@ -74,7 +74,7 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-plugin-http2/node_modules
- packages/opentelemetry-plugin-mongodb/node_modules
- save_cache:
key: npm-cache-3-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
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
Expand All @@ -87,7 +87,7 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-scope-async-hooks/yarn.lock
- packages/opentelemetry-core/yarn.lock
- save_cache:
key: npm-cache-4-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-04-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- packages/opentelemetry-exporter-prometheus/yarn.lock
- packages/opentelemetry-metrics/yarn.lock
Expand All @@ -100,7 +100,7 @@ node_unit_tests: &node_unit_tests
- packages/opentelemetry-plugin-dns/yarn.lock
- packages/opentelemetry-plugin-grpc/yarn.lock
- save_cache:
key: npm-cache-5-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-05-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- packages/opentelemetry-plugin-http/yarn.lock
- packages/opentelemetry-plugin-http2/yarn.lock
Expand Down

0 comments on commit 21fae95

Please sign in to comment.