Merge pull request #13272 from influxdata/remove-npm-cache

Remove npm caching, ensure fresh dependencies are installed
pull/13266/head
Brandon Farmer 2019-04-09 13:12:39 -07:00 committed by GitHub
commit bc05f69491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 29 deletions

View File

@ -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'