Merge pull request #13272 from influxdata/remove-npm-cache
Remove npm caching, ensure fresh dependencies are installedpull/13266/head
commit
bc05f69491
|
@ -56,10 +56,6 @@ jobs:
|
|||
name: Restoring GOPATH/pkg/mod
|
||||
keys:
|
||||
- influxdb-gomod-{{ checksum "go.sum" }} # Just match the go.sum checksum cache.
|
||||
- restore_cache:
|
||||
name: Restore npm package cache
|
||||
keys:
|
||||
- chronograf-npm-packages-{{ checksum "ui/package-lock.json" }}
|
||||
- run: sudo apt-get install -y netcat-openbsd
|
||||
- run: make protoc
|
||||
- run: make build
|
||||
|
@ -82,20 +78,7 @@ jobs:
|
|||
working_directory: /go/src/github.com/influxdata/influxdb
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
# Run npm install, using Circle's cache if applicable.
|
||||
- restore_cache:
|
||||
name: Restore npm package cache
|
||||
keys:
|
||||
# Only cache on exact package-lock.json match, as in Circle's npm example:
|
||||
- chronograf-npm-packages-{{ checksum "ui/package-lock.json" }}
|
||||
- run: make node_modules
|
||||
- save_cache:
|
||||
name: Save npm package cache
|
||||
key: chronograf-npm-packages-{{ checksum "ui/package-lock.json" }}
|
||||
paths:
|
||||
- ~/.cache/npm
|
||||
|
||||
- run: make test-js
|
||||
- run: make chronograf_lint
|
||||
|
||||
|
@ -171,10 +154,6 @@ jobs:
|
|||
name: Restoring GOPATH/pkg/mod
|
||||
keys:
|
||||
- influxdb-gomod-{{ checksum "go.sum" }} # Just match the go.sum checksum cache.
|
||||
- restore_cache:
|
||||
name: Restore npm package cache
|
||||
keys:
|
||||
- chronograf-npm-packages-{{ checksum "ui/package-lock.json" }}
|
||||
- run: make protoc
|
||||
- run: make build
|
||||
- persist_to_workspace:
|
||||
|
@ -205,10 +184,6 @@ jobs:
|
|||
name: Restoring GOPATH/pkg/mod
|
||||
keys:
|
||||
- influxdb-gomod-{{ checksum "go.sum" }} # Just match the go.sum checksum cache.
|
||||
- restore_cache:
|
||||
name: Restore npm package cache
|
||||
keys:
|
||||
- chronograf-npm-packages-{{ checksum "ui/package-lock.json" }}
|
||||
- setup_remote_docker
|
||||
- run:
|
||||
name: 'Docker Login'
|
||||
|
@ -242,10 +217,6 @@ jobs:
|
|||
name: Restoring GOPATH/pkg/mod
|
||||
keys:
|
||||
- influxdb-gomod-{{ checksum "go.sum" }} # Just match the go.sum checksum cache.
|
||||
- restore_cache:
|
||||
name: Restore Yarn package cache
|
||||
keys:
|
||||
- chronograf-npm-packages-{{ checksum "ui/package-lock.json" }}
|
||||
- setup_remote_docker
|
||||
- run:
|
||||
name: 'Docker Login'
|
||||
|
|
Loading…
Reference in New Issue