Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
source ~/.bash_profile
set -e
set -x
if [ -f ~/evm ]; then
echo evm found
else
rm -rf evm
git clone https://github.com/robisonsantos/evm.git
cp evm/evm ~/
fi
. ~/evm
evm install $ERLANG_VERSION -y
evm use $ERLANG_VERSION
mkdir -p ~/.kiex/bin/
curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/kiex > ~/.kiex/bin/kiex
chmod +x ~/.kiex/bin/kiex
if [ -f ~/.kiex/scripts/kiex ]; then
. ~/.kiex/scripts/kiex
kiex selfupdate
else
mkdir -p ~/.kiex/bin/
curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/kiex > ~/.kiex/bin/kiex
chmod +x ~/.kiex/bin/kiex
~/.kiex/bin/kiex setup
. ~/.kiex/scripts/kiex
fi
kiex install $ELIXIR_VERSION
kiex use $ELIXIR_VERSION
mix local.hex --force
mix local.rebar --force
if [ -d dialyxir ]; then
git -C dialyxir pull
else
git clone https://github.com/jeremyjh/dialyxir.git
fi
cd dialyxir
mix archive.build
mix archive.install --force # don't ask for confirmation
mix dialyzer.plt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.