Skip to content

Commit

Permalink
Migrate circleci to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kalys committed Aug 7, 2018
1 parent e2816b8 commit 3b1e28f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 14 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2
jobs:
build:
docker:
- image: circleci/elixir:1.6
environment:
MIX_ENV: test

working_directory: ~/repo
steps:
- checkout
- run: mix local.hex --force # install Hex locally (without prompt)
- run: mix local.rebar --force # fetch a copy of rebar (without prompt)

- restore_cache:
keys:
- v1-mix-cache-{{ .Branch }}-{{ checksum "mix.lock" }}
- v1-mix-cache-{{ .Branch }}
- v1-mix-cache
- restore_cache:
keys:
- v1-build-cache-{{ .Branch }}
- v1-build-cache
- run: mix do deps.get, compile
- save_cache:
key: v1-mix-cache-{{ .Branch }}-{{ checksum "mix.lock" }}
paths: "deps"
- save_cache:
key: v1-mix-cache-{{ .Branch }}
paths: "deps"
- save_cache:
key: v1-mix-cache
paths: "deps"
- save_cache:
key: v1-build-cache-{{ .Branch }}
paths: "_build"
- save_cache:
key: v1-build-cache
paths: "_build"
- run: mix test
- run: MIX_ENV=prod mix compile

- store_test_results: # upload test results for display in Test Summary
path: _build/test/junit
14 changes: 0 additions & 14 deletions circle.yml

This file was deleted.

0 comments on commit 3b1e28f

Please sign in to comment.