Last active
January 30, 2017 05:47
-
-
Save schnittchen/3aed74cfa7b2bd3c1df0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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