Skip to content

Commit

Permalink
Add new aliases ,Resolve failure in git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-2204 committed Feb 28, 2023
1 parent 137a03e commit 014ceee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ TPMFLAGS = -ltss2-esys -ltss2-rc -ltss2-mu -lcrypto
all: compile_c_programs

compile_c_programs:
mix git_hooks.install
mkdir -p priv/c_dist
$(CC) src/c/crypto/stdio_helpers.c src/c/crypto/ed25519.c -o priv/c_dist/libsodium_port -I src/c/crypto/stdio_helpers.h -lsodium
$(CC) src/c/hypergeometric_distribution.c -o priv/c_dist/hypergeometric_distribution -lgmp
Expand Down
3 changes: 1 addition & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ config :git_hooks,
pre_push: [
tasks: [
{:cmd, "mix clean"},
{:cmd, "mix git_hooks.install"},
{:cmd, "mix hex.outdated --within-requirements"},
# {:cmd, "mix dev.update_deps"},
{:cmd, "mix format --check-formatted"},
{:cmd, "mix compile --warnings-as-errors"},
{:cmd, "mix credo"},
Expand Down
8 changes: 8 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ defmodule Archethic.MixProject do

defp aliases do
[
"dev.update_deps": [
"hex.outdated --within-requirements",
"deps.update --all --only",
"deps.clean --all --only",
"deps.get",
"deps.compile",
"hex.outdated --within-requirements"
],
# Intial developer Setup
"dev.setup": ["deps.get", "cmd npm install --prefix assets"],
# When Changes are not registered by compiler | any()
Expand Down

0 comments on commit 014ceee

Please sign in to comment.