-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add description of the usage example * Update circleci config to use membraneframework/elixir orb * Update deps * Remove empty priv dir
- Loading branch information
1 parent
005074c
commit 2377597
Showing
4 changed files
with
17 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,124 +1,11 @@ | ||
version: 2.1 | ||
commands: | ||
save_deps_cache: | ||
steps: | ||
- save_cache: | ||
key: v1-mix-deps-cache-{{ checksum "mix.lock" }} | ||
paths: ["deps"] | ||
restore_deps_cache: | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-mix-deps-cache-{{ checksum "mix.lock" }} | ||
- v1-mix-deps-cache- | ||
workspace_init: | ||
steps: | ||
- checkout | ||
- restore_deps_cache | ||
- run: mix deps.clean --unused | ||
- run: mix deps.get | ||
- save_deps_cache | ||
save_build_cache: | ||
parameters: | ||
env: | ||
description: Mix environment | ||
type: string | ||
default: dev | ||
steps: | ||
- save_cache: | ||
key: v1-build-cache-{{ arch }}-<< parameters.env >>-{{ checksum "mix.lock" }} | ||
paths: ["_build/<< parameters.env >>"] | ||
restore_build_cache: | ||
parameters: | ||
env: | ||
description: Mix environment | ||
type: string | ||
default: dev | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-build-cache-{{ arch }}-<< parameters.env >>-{{ checksum "mix.lock" }} | ||
- v1-build-cache-{{ arch }}-<< parameters.env >>- | ||
- v1-build-cache-{{ arch }}- | ||
- v1-build-cache- | ||
gen_version_file: | ||
steps: | ||
- run: asdf current erlang > .runtime_version | ||
- run: asdf current elixir >> .runtime_version | ||
save_plt_cache: | ||
steps: | ||
- save_cache: | ||
key: v1-dialyzer-cache-{{ checksum ".runtime_version" }}-{{ checksum "mix.lock" }} | ||
paths: "priv/plts" | ||
restore_plt_cache: | ||
steps: | ||
- restore_cache: | ||
keys: | ||
- v1-dialyzer-cache-{{ checksum ".runtime_version" }}-{{ checksum "mix.lock" }} | ||
- v1-dialyzer-cache-{{ checksum ".runtime_version" }}- | ||
- v1-dialyzer-cache- | ||
|
||
jobs: | ||
build_test: | ||
docker: | ||
- image: membraneframeworklabs/docker_membrane | ||
environment: | ||
MIX_ENV: test | ||
|
||
working_directory: ~/app | ||
|
||
steps: | ||
- workspace_init | ||
- restore_build_cache: | ||
env: test | ||
- run: mix deps.compile | ||
- run: mix compile --force --warnings-as-errors | ||
- save_build_cache: | ||
env: test | ||
- run: mix deps.unlock --check-unused | ||
|
||
test: | ||
docker: | ||
- image: membraneframeworklabs/docker_membrane:latest | ||
environment: | ||
MIX_ENV: test | ||
|
||
working_directory: ~/app | ||
|
||
steps: | ||
- workspace_init | ||
- restore_build_cache: | ||
env: test | ||
- run: mix compile | ||
- run: mix test | ||
|
||
lint: | ||
docker: | ||
- image: membraneframeworklabs/docker_membrane:latest | ||
environment: | ||
MIX_ENV: dev | ||
|
||
working_directory: ~/app | ||
|
||
steps: | ||
- workspace_init | ||
- restore_build_cache: | ||
env: dev | ||
- run: mix compile | ||
- save_build_cache: | ||
env: dev | ||
- run: mix format --check-formatted | ||
- run: mix credo | ||
- run: mix docs && mix docs 2>&1 | (! grep -q "warning:") | ||
- gen_version_file | ||
- restore_plt_cache | ||
- run: mix dialyzer | ||
- save_plt_cache | ||
orbs: | ||
elixir: membraneframework/elixir@1 | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build_test | ||
- test | ||
- lint | ||
- elixir/build_test | ||
- elixir/test | ||
- elixir/lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.