Skip to content

Commit

Permalink
Cache hex packages in CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
rupurt committed Jun 16, 2018
1 parent 23dcc8a commit cb60cf0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ jobs:
steps:
- checkout

- restore_cache:
keys:
- hex-packages-{{ arch }}-{{ .Branch }}-{{ checksum "mix.lock" }}
- run: mix local.hex --force
- run: mix local.rebar --force
- run: mix deps.get
- save_cache:
key: hex-packages-{{ arch }}-{{ .Branch }}-{{ checksum "mix.lock" }}
paths:
- deps

- run: mix test

- restore_cache:
Expand Down

0 comments on commit cb60cf0

Please sign in to comment.