Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Use caches for build-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
pburkholder committed Sep 14, 2018
1 parent f204f5f commit 9763f87
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ jobs:
- run: sleep 5
- run: cd $WS && npm run test-performance || true
- run: cd $WS && SKIP_DOCKER=1 ./codecheck.sh
- save_cache:
key: v1-node_modules-{{ checksum "npm-shrinkwrap.json }}
paths:
- node_modules
- save_cache:
key: v1-go-{{ .Environment.CIRCLE_SHA1 }}
paths:
- /home/ubuntu/.go_workspace/src/github.com/18F/cg-dashboard

# Save test results
- store_test_results:
path: /tmp/circleci-test-results
Expand All @@ -102,6 +111,11 @@ jobs:
command: /sbin/init
steps:
- checkout
- restore_cache:
key: v1-go-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
key: v1-node-modules-{{ checksum "npm-shrinkwrap.json"}}
- run: nvm install && nvm use && nvm alias default $(cat .nvmrc)
- run: NODE_ENV=prod npm run build-prod
- run: pip install --user ruamel.yaml
- run: export BUILD_INFO=build::$CIRCLE_BRANCH::$(date -u "+%Y-%m-%d-%H-%M-%S")::$CIRCLE_BUILD_NUM::$(deploy/npm-version.sh) && python deploy/vars-to-manifest.py
Expand Down

0 comments on commit 9763f87

Please sign in to comment.