fix(circleci): Fixing the glide/vendor cache so it is used by glide

This commit does a few things:
* It moves the information being cached to be the glide cache.
  This will make the glide install process faster.
* The cache is restored from prior to installing the dependencies.
parent 441758b2
...@@ -10,13 +10,17 @@ jobs: ...@@ -10,13 +10,17 @@ jobs:
steps: steps:
- checkout - checkout
- setup_remote_docker - setup_remote_docker
- restore_cache:
keys:
- glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
- glide- # used as a fall through if the checksum fails to find exact entry
- run: - run:
name: install dependencies name: install dependencies
command: make bootstrap command: make bootstrap
- save_cache: - save_cache:
key: vendor-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }} key: glide-{{ checksum "glide.yaml" }}-{{ checksum "glide.lock" }}
paths: paths:
- vendor - /root/.glide # Where the glide cache is stored
- run: - run:
name: test name: test
command: .circleci/test.sh command: .circleci/test.sh
......
hash: 650f1d4cd9e9dc5ba76480a5465923ce1bbd11b8fa956b644aaf975e8f7e1f33 hash: 397d714c3a444071879981d3e6575931bd637166e845c6577eaea08ffde7e33d
updated: 2017-10-12T13:08:50.435765-07:00 updated: 2017-10-27T11:04:22.887120936-04:00
imports: imports:
- name: cloud.google.com/go - name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821 version: 3b1ae45394a234c385be014e9a488f2bb6eef821
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment